Skip to content

Commit 708c439

Browse files
authored
Update test.ndarray.js
Signed-off-by: JaySoni1 <[email protected]>
1 parent 0f78464 commit 708c439

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

lib/node_modules/@stdlib/lapack/base/dge-trans/test/test.ndarray.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var ndarray = require( './../lib' ); // ✅ ensure correct path to your ndarray module
24+
var ndarray = require( './../lib' ); // <- path to your ndarray implementation
2525

2626

2727
// TESTS //
@@ -32,13 +32,13 @@ tape( 'main export is a function', function test( t ) {
3232
});
3333

3434
tape( 'the function returns an ndarray object with expected properties', function test( t ) {
35-
const data = [ 1, 2, 3, 4 ];
36-
const shape = [ 2, 2 ];
37-
const strides = [ 2, 1 ];
38-
const offset = 0;
39-
const order = 'row-major';
35+
var data = [ 1, 2, 3, 4 ];
36+
var shape = [ 2, 2 ];
37+
var strides = [ 2, 1 ];
38+
var offset = 0;
39+
var order = 'row-major';
4040

41-
const arr = ndarray( 'generic', data, shape, strides, offset, order );
41+
var arr = ndarray( 'generic', data, shape, strides, offset, order );
4242

4343
t.strictEqual( arr.dtype, 'generic', 'returns expected dtype' );
4444
t.deepEqual( arr.shape, shape, 'returns expected shape' );
@@ -50,13 +50,13 @@ tape( 'the function returns an ndarray object with expected properties', functio
5050
});
5151

5252
tape( 'the returned ndarray supports getting and setting elements', function test( t ) {
53-
const data = [ 0, 0, 0, 0 ];
54-
const shape = [ 2, 2 ];
55-
const strides = [ 2, 1 ];
56-
const offset = 0;
57-
const order = 'row-major';
53+
var data = [ 0, 0, 0, 0 ];
54+
var shape = [ 2, 2 ];
55+
var strides = [ 2, 1 ];
56+
var offset = 0;
57+
var order = 'row-major';
5858

59-
const arr = ndarray( 'generic', data, shape, strides, offset, order );
59+
var arr = ndarray( 'generic', data, shape, strides, offset, order );
6060

6161
arr.set( 0, 0, 1 );
6262
arr.set( 0, 1, 2 );
@@ -71,13 +71,13 @@ tape( 'the returned ndarray supports getting and setting elements', function tes
7171
});
7272

7373
tape( 'the function correctly handles offsets', function test( t ) {
74-
const data = [ 99, 1, 2, 3, 4 ];
75-
const shape = [ 2, 2 ];
76-
const strides = [ 2, 1 ];
77-
const offset = 1;
78-
const order = 'row-major';
74+
var data = [ 99, 1, 2, 3, 4 ];
75+
var shape = [ 2, 2 ];
76+
var strides = [ 2, 1 ];
77+
var offset = 1;
78+
var order = 'row-major';
7979

80-
const arr = ndarray( 'generic', data, shape, strides, offset, order );
80+
var arr = ndarray( 'generic', data, shape, strides, offset, order );
8181

8282
t.strictEqual( arr.get( 0, 0 ), 1, 'returns correct value at (0,0)' );
8383
t.strictEqual( arr.get( 0, 1 ), 2, 'returns correct value at (0,1)' );

0 commit comments

Comments
 (0)