Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 16, 2024
1 parent 2e3a2cd commit 350c882
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions base/to-reversed/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ var AccessorArray = require( './../../../base/accessor' );
var Float64Array = require( './../../../float64' );
var Int32Array = require( './../../../int32' );
var isArray = require( '@stdlib/assert/is-array' );
var isFloat64Array = require( '@stdlib/assert/is-float64array' );
var isInt32Array = require( '@stdlib/assert/is-int32array' );
var toReversed = require( './../lib' );


Expand Down Expand Up @@ -88,31 +86,27 @@ tape( 'the function reverses an array-like object (float64)', function test( t )
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Float64Array( [ 2.0, 3.0 ] );
expected = new Float64Array( [ 3.0, 2.0 ] );
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Float64Array( [ 2.0 ] );
expected = new Float64Array( [ 2.0 ] );
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Float64Array( [] );
expected = new Float64Array( [] );
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

t.end();
Expand All @@ -128,31 +122,27 @@ tape( 'the function reverses an array-like object (int32)', function test( t ) {
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Int32Array( [ 1, 2 ] );
expected = new Int32Array( [ 2, 1 ] );
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Int32Array( [ 1 ] );
expected = new Int32Array( [ 1 ] );
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

x = new Int32Array( [] );
expected = new Int32Array( [] );
actual = toReversed( x );

t.notEqual( actual, x, 'returns different reference' );
t.strictEqual( isInt32Array( actual ), true, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

t.end();
Expand Down

0 comments on commit 350c882

Please sign in to comment.