Skip to content

Commit e8ffcdb

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent b362e44 commit e8ffcdb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/to-rotr90/test

lib/node_modules/@stdlib/ndarray/base/to-rotr90/test/test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ tape( 'when provided a one-dimensional input array, the function returns a new o
7272
var actual;
7373
var buf;
7474
var x;
75-
var i;
7675

7776
buf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
7877
x = new base( 'float64', buf, [ 6 ], [ 1 ], 0, 'row-major' );
@@ -82,11 +81,8 @@ tape( 'when provided a one-dimensional input array, the function returns a new o
8281
t.deepEqual( getShape( actual ), [ 6 ], 'returns expected value' );
8382
t.strictEqual( String( getDType( actual ) ), String( getDType( x ) ), 'returns expected value' );
8483
t.notEqual( getData( actual ), getData( x ), 'returns expected value' );
85-
8684
expected = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
87-
for ( i = 0; i < expected.length; i++ ) {
88-
t.strictEqual( actual.iget( i ), expected[ i ], 'returns expected value' );
89-
}
85+
t.deepEqual( ndarray2array( actual ), expected, 'returns expected value' );
9086

9187
t.end();
9288
});

0 commit comments

Comments
 (0)