Skip to content

Commit 7f296b8

Browse files
committed
test: reorder tests to visually group related tests
1 parent 238e44f commit 7f296b8

File tree

4 files changed

+48
-48
lines changed

4 files changed

+48
-48
lines changed

lib/node_modules/@stdlib/blas/ext/base/dnanasumors/test/test.dnanasumors.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,6 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
9292
t.end();
9393
});
9494

95-
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0`', function test( t ) {
96-
var x;
97-
var v;
98-
99-
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
100-
101-
v = dnanasumors( x.length, x, 0, 0 );
102-
t.strictEqual( v, 0.0, 'returns expected value' );
103-
104-
t.end();
105-
});
106-
10795
tape( 'if provided an `N` parameter equal to `1`, the function returns the first element', function test( t ) {
10896
var x;
10997
var v;
@@ -172,6 +160,18 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
172160
t.end();
173161
});
174162

163+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0`', function test( t ) {
164+
var x;
165+
var v;
166+
167+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
168+
169+
v = dnanasumors( x.length, x, 0, 0 );
170+
t.strictEqual( v, 0.0, 'returns expected value' );
171+
172+
t.end();
173+
});
174+
175175
tape( 'the function supports view offsets', function test( t ) {
176176
var x0;
177177
var x1;

lib/node_modules/@stdlib/blas/ext/base/dnanasumors/test/test.dnanasumors.native.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,6 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
183183
t.end();
184184
});
185185

186-
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0`', opts, function test( t ) {
187-
var x;
188-
var v;
189-
190-
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
191-
192-
v = dnanasumors( x.length, x, 0, 0 );
193-
t.strictEqual( v, 0.0, 'returns expected value' );
194-
195-
t.end();
196-
});
197-
198186
tape( 'if provided an `N` parameter equal to `1`, the function returns the first element', opts, function test( t ) {
199187
var x;
200188
var v;
@@ -265,6 +253,18 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
265253
t.end();
266254
});
267255

256+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0`', opts, function test( t ) {
257+
var x;
258+
var v;
259+
260+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
261+
262+
v = dnanasumors( x.length, x, 0, 0 );
263+
t.strictEqual( v, 0.0, 'returns expected value' );
264+
265+
t.end();
266+
});
267+
268268
tape( 'the function supports view offsets', opts, function test( t ) {
269269
var x0;
270270
var x1;

lib/node_modules/@stdlib/blas/ext/base/dnanasumors/test/test.ndarray.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,6 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
9292
t.end();
9393
});
9494

95-
tape( 'if provided a `stride` parameter equal to `0` and the first indexed element is `NaN`, the function returns `0`', function test( t ) {
96-
var x;
97-
var v;
98-
99-
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
100-
101-
v = dnanasumors( x.length, x, 0, 0 );
102-
t.strictEqual( v, 0.0, 'returns expected value' );
103-
104-
t.end();
105-
});
106-
10795
tape( 'if provided an `N` parameter equal to `1`, the function returns the first indexed element', function test( t ) {
10896
var x;
10997
var v;
@@ -174,6 +162,18 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
174162
t.end();
175163
});
176164

165+
tape( 'if provided a `stride` parameter equal to `0` and the first indexed element is `NaN`, the function returns `0`', function test( t ) {
166+
var x;
167+
var v;
168+
169+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
170+
171+
v = dnanasumors( x.length, x, 0, 0 );
172+
t.strictEqual( v, 0.0, 'returns expected value' );
173+
174+
t.end();
175+
});
176+
177177
tape( 'the function supports an `offset` parameter', function test( t ) {
178178
var x;
179179
var v;

lib/node_modules/@stdlib/blas/ext/base/dnanasumors/test/test.ndarray.native.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,6 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
101101
t.end();
102102
});
103103

104-
tape( 'if provided a `stride` parameter equal to `0` and the first indexed element is `NaN`, the function returns `0`', opts, function test( t ) {
105-
var x;
106-
var v;
107-
108-
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
109-
110-
v = dnanasumors( x.length, x, 0, 0 );
111-
t.strictEqual( v, 0.0, 'returns expected value' );
112-
113-
t.end();
114-
});
115-
116104
tape( 'if provided an `N` parameter equal to `1`, the function returns the first indexed element', opts, function test( t ) {
117105
var x;
118106
var v;
@@ -183,6 +171,18 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
183171
t.end();
184172
});
185173

174+
tape( 'if provided a `stride` parameter equal to `0` and the first indexed element is `NaN`, the function returns `0`', opts, function test( t ) {
175+
var x;
176+
var v;
177+
178+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
179+
180+
v = dnanasumors( x.length, x, 0, 0 );
181+
t.strictEqual( v, 0.0, 'returns expected value' );
182+
183+
t.end();
184+
});
185+
186186
tape( 'the function supports an `offset` parameter', opts, function test( t ) {
187187
var x;
188188
var v;

0 commit comments

Comments
 (0)