Skip to content

Commit b5ccb4d

Browse files
committed
fix: add missing test to toReverse method in array/fixed-endian-factory
1 parent f84a8e1 commit b5ccb4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/array/fixed-endian-factory/test/test.to_reversed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var tape = require( 'tape' );
2424
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
2525
var isFunction = require( '@stdlib/assert/is-function' );
2626
var instanceOf = require( '@stdlib/assert/instance-of' );
27-
var Uint8Array = require( '@stdlib/array/uint8' );
2827
var factory = require( './../lib' );
2928

3029

@@ -97,11 +96,12 @@ tape( 'the method returns a new typed array containing elements in reverse order
9796

9897
ctor = factory( 'float64' );
9998
arr = new ctor( 'little-endian', [ 1.0, 2.0, 3.0, 4.0 ] );
100-
expected = new Uint8Array( [ 4.0, 3.0, 2.0, 1.0 ] );
99+
expected = new ctor( 'little-endian', [ 4.0, 3.0, 2.0, 1.0 ] );
101100
out = arr.toReversed();
102101

103102
t.strictEqual( instanceOf( out, ctor ), true, 'returns expected value' );
104103
t.notEqual( out, arr, 'returns a new instance' );
104+
t.deepEqual( out, expected, 'returns expected value' );
105105
t.strictEqual( out.length, expected.length, 'returns expected value' );
106106
t.end();
107107
});

0 commit comments

Comments
 (0)