text: /**
  * @license Apache-2.0
  *
  * Copyright (c) 2020 The Stdlib Authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *    http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  
  'use strict';
  
  // MODULES //
  
  var resolve = require( 'path' ).resolve;
  var tape = require( 'tape' );
  var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
  var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' );
  var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' );
  var PINF = require( '@stdlib/constants/float32/pinf' );
  var NINF = require( '@stdlib/constants/float32/ninf' );
  var EPS = require( '@stdlib/constants/float32/eps' );
  var abs = require( '@stdlib/math/base/special/abs' );
  var tryRequire = require( '@stdlib/utils/try-require' );
  
  
  // FIXTURES //
  
  var hugeNegative = require( './fixtures/julia/huge_negative.json' );
  var hugePositive = require( './fixtures/julia/huge_positive.json' );
  var veryLargeNegative = require( './fixtures/julia/very_large_negative.json' );
  var veryLargePositive = require( './fixtures/julia/very_large_positive.json' );
  var largeNegative = require( './fixtures/julia/large_negative.json' );
  var largePositive = require( './fixtures/julia/large_positive.json' );
  var mediumNegative = require( './fixtures/julia/medium_negative.json' );
  var mediumPositive = require( './fixtures/julia/medium_positive.json' );
  var smallNegative = require( './fixtures/julia/small_negative.json' );
  var smallPositive = require( './fixtures/julia/small_positive.json' );
  var smaller = require( './fixtures/julia/smaller.json' );
  var tinyNegative = require( './fixtures/julia/tiny_negative.json' );
  var tinyPositive = require( './fixtures/julia/tiny_positive.json' );
  var subnormal = require( './fixtures/julia/subnormal.json' );
  
  
  // VARIABLES //
  
  var cbrtf = tryRequire( resolve( __dirname, './../lib/native.js' ) );
  var opts = {
  	'skip': ( cbrtf instanceof Error )
  };
  
  
  // TESTS //
  
  tape( 'main export is a function', opts, function test( t ) {
  	t.ok( true, __filename );
  	t.equal( typeof cbrtf, 'function', 'main export is a function' );
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[-50,-500]', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = veryLargeNegative.expected;
  	x = veryLargeNegative.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[50,500]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = veryLargePositive.expected;
  	x = veryLargePositive.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[-20,-50]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = largeNegative.expected;
  	x = largeNegative.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[20,50]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = largePositive.expected;
  	x = largePositive.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[-20,-3]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = mediumNegative.expected;
  	x = mediumNegative.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[3,20]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = mediumPositive.expected;
  	x = mediumPositive.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[-3,-0.8]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = smallNegative.expected;
  	x = smallNegative.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[0.8,3]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = smallPositive.expected;
  	x = smallPositive.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates cubic root of `x` on the interval `[-0.8,0.8]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = smaller.expected;
  	x = smaller.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[-1e-300,-1e-308]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = tinyNegative.expected;
  	x = tinyNegative.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` on the interval `[1e-300,1e-308]`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = tinyPositive.expected;
  	x = tinyPositive.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of subnormal `x`', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = subnormal.expected;
  	x = subnormal.x;
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` (huge negative)', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = hugeNegative.expected;
  	x = hugeNegative.x;
  
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function evaluates the cubic root of `x` (huge positive)', opts, function test( t ) {
  	var expected;
  	var delta;
  	var tol;
  	var x;
  	var y;
  	var i;
  
  	expected = hugePositive.expected;
  	x = hugePositive.x;
  
  	for ( i = 0; i < x.length; i++ ) {
  		y = cbrtf( x[i] );
  		if ( y === expected[i] ) {
  			t.equal( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
  		} else {
  			delta = abs( y - expected[ i ] );
  			tol = EPS * abs( expected[ i ] );
  			t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
  		}
  	}
  	t.end();
  });
  
  tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
  	var v = cbrtf( NaN );
  	t.equal( isnanf( v ), true, 'returns NaN' );
  	t.end();
  });
  
  tape( 'the function returns `-infinity` if provided `-infinity`', opts, function test( t ) {
  	var v = cbrtf( NINF );
  	t.equal( v, NINF, 'returns -infinity' );
  	t.end();
  });
  
  tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) {
  	var v = cbrtf( PINF );
  	t.equal( v, PINF, 'returns +infinity' );
  	t.end();
  });
  
  tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) {
  	var v = cbrtf( +0.0 );
  	t.equal( isPositiveZerof( v ), true, 'returns 0' );
  	t.end();
  });
  
  tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) {
  	var v = cbrtf( -0.0 );
  	t.equal( isNegativeZerof( v ), true, 'returns -0' );
  	t.end();
  });
  