Skip to content

Commit e870766

Browse files
committed
test: make negative case test values more obvious
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e95d3da commit e870766

File tree

9 files changed

+360
-360
lines changed

9 files changed

+360
-360
lines changed

lib/node_modules/@stdlib/ndarray/base/includes/test/test.10d.js

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/ndarray/base/includes/test/test.3d.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
6060

6161
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
6262

63-
v = scalar2ndarray( 8.0, {
63+
v = scalar2ndarray( -99.0, {
6464
'dtype': 'float64'
6565
});
6666
actual = includes( [ x, v ] );
@@ -93,7 +93,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
9393

9494
x = ndarray( dt, toAccessorArray( oneTo( numel( sh ), dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
9595

96-
v = scalar2ndarray( 8.0, {
96+
v = scalar2ndarray( -99.0, {
9797
'dtype': 'float64'
9898
});
9999
actual = includes( [ x, v ] );
@@ -126,7 +126,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
126126

127127
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
128128

129-
v = scalar2ndarray( 8.0, {
129+
v = scalar2ndarray( -99.0, {
130130
'dtype': 'float64'
131131
});
132132
actual = includes( [ x, v ] );
@@ -159,7 +159,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
159159

160160
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
161161

162-
v = scalar2ndarray( 8.0, {
162+
v = scalar2ndarray( -99.0, {
163163
'dtype': 'float64'
164164
});
165165
actual = includes( [ x, v ] );
@@ -192,7 +192,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
192192

193193
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
194194

195-
v = scalar2ndarray( 8.0, {
195+
v = scalar2ndarray( -99.0, {
196196
'dtype': 'float64'
197197
});
198198
actual = includes( [ x, v ] );
@@ -225,7 +225,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
225225

226226
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
227227

228-
v = scalar2ndarray( 8.0, {
228+
v = scalar2ndarray( -99.0, {
229229
'dtype': 'float64'
230230
});
231231
actual = includes( [ x, v ] );
@@ -261,7 +261,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
261261

262262
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
263263

264-
v = scalar2ndarray( 8.0, {
264+
v = scalar2ndarray( -99.0, {
265265
'dtype': 'float64'
266266
});
267267
actual = includes( [ x, v ] );
@@ -297,7 +297,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
297297

298298
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
299299

300-
v = scalar2ndarray( 8.0, {
300+
v = scalar2ndarray( -99.0, {
301301
'dtype': 'float64'
302302
});
303303
actual = includes( [ x, v ] );
@@ -333,7 +333,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
333333

334334
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
335335

336-
v = scalar2ndarray( 8.0, {
336+
v = scalar2ndarray( -99.0, {
337337
'dtype': 'float64'
338338
});
339339
actual = includes( [ x, v ] );
@@ -368,7 +368,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
368368

369369
x = ndarray( dt, new Complex128Array( xbuf ), sh, st, o, ord );
370370

371-
v = scalar2ndarray( new Complex128( 1.0, 0.0 ), {
371+
v = scalar2ndarray( new Complex128( -99.0, -99.0 ), {
372372
'dtype': 'complex128'
373373
});
374374
actual = includes( [ x, v ] );
@@ -403,7 +403,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
403403

404404
x = ndarray( dt, new Complex128Array( xbuf ), sh, st, o, ord );
405405

406-
v = scalar2ndarray( new Complex128( 1.0, 0.0 ), {
406+
v = scalar2ndarray( new Complex128( -99.0, -99.0 ), {
407407
'dtype': 'complex128'
408408
});
409409
actual = includes( [ x, v ] );
@@ -620,7 +620,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
620620

621621
x = ndarray( dt, toAccessorArray( oneTo( numel( sh ), dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
622622

623-
v = scalar2ndarray( 8.0, {
623+
v = scalar2ndarray( -99.0, {
624624
'dtype': 'float64'
625625
});
626626
actual = includes( [ x, v ] );
@@ -653,7 +653,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
653653

654654
x = ndarray( dt, toAccessorArray( oneTo( numel( sh ), dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
655655

656-
v = scalar2ndarray( 8.0, {
656+
v = scalar2ndarray( -99.0, {
657657
'dtype': 'float64'
658658
});
659659
actual = includes( [ x, v ] );
@@ -686,7 +686,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
686686

687687
x = ndarray( dt, toAccessorArray( oneTo( 8, dt ) ), sh, st, o, ord );
688688

689-
v = scalar2ndarray( 6.0, {
689+
v = scalar2ndarray( -99.0, {
690690
'dtype': 'float64'
691691
});
692692
actual = includes( [ x, v ] );
@@ -719,7 +719,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
719719

720720
x = ndarray( dt, toAccessorArray( oneTo( 8, dt ) ), sh, st, o, ord );
721721

722-
v = scalar2ndarray( 6.0, {
722+
v = scalar2ndarray( -99.0, {
723723
'dtype': 'float64'
724724
});
725725
actual = includes( [ x, v ] );
@@ -755,7 +755,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
755755

756756
x = ndarray( dt, toAccessorArray( oneTo( numel( sh )*2, dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
757757

758-
v = scalar2ndarray( 8.0, {
758+
v = scalar2ndarray( -99.0, {
759759
'dtype': 'float64'
760760
});
761761
actual = includes( [ x, v ] );
@@ -791,7 +791,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
791791

792792
x = ndarray( dt, toAccessorArray( oneTo( numel( sh )*2, dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
793793

794-
v = scalar2ndarray( 8.0, {
794+
v = scalar2ndarray( -99.0, {
795795
'dtype': 'float64'
796796
});
797797
actual = includes( [ x, v ] );
@@ -827,7 +827,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
827827

828828
x = ndarray( dt, toAccessorArray( oneTo( numel( sh )*2, dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
829829

830-
v = scalar2ndarray( 8.0, {
830+
v = scalar2ndarray( -99.0, {
831831
'dtype': 'float64'
832832
});
833833
actual = includes( [ x, v ] );
@@ -860,7 +860,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
860860

861861
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
862862

863-
v = scalar2ndarray( 8.0, {
863+
v = scalar2ndarray( -99.0, {
864864
'dtype': 'float64'
865865
});
866866
actual = includes( [ x, v ] );
@@ -893,7 +893,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
893893

894894
x = ndarray( dt, toAccessorArray( oneTo( numel( sh ), dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
895895

896-
v = scalar2ndarray( 8.0, {
896+
v = scalar2ndarray( -99.0, {
897897
'dtype': 'float64'
898898
});
899899
actual = includes( [ x, v ] );
@@ -926,7 +926,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
926926

927927
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
928928

929-
v = scalar2ndarray( 8.0, {
929+
v = scalar2ndarray( -99.0, {
930930
'dtype': 'float64'
931931
});
932932
actual = includes( [ x, v ] );
@@ -959,7 +959,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
959959

960960
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
961961

962-
v = scalar2ndarray( 8.0, {
962+
v = scalar2ndarray( -99.0, {
963963
'dtype': 'float64'
964964
});
965965
actual = includes( [ x, v ] );
@@ -1061,7 +1061,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
10611061

10621062
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
10631063

1064-
v = scalar2ndarray( 8.0, {
1064+
v = scalar2ndarray( -99.0, {
10651065
'dtype': 'float64'
10661066
});
10671067
actual = includes( [ x, v ] );
@@ -1097,7 +1097,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
10971097

10981098
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
10991099

1100-
v = scalar2ndarray( 8.0, {
1100+
v = scalar2ndarray( -99.0, {
11011101
'dtype': 'float64'
11021102
});
11031103
actual = includes( [ x, v ] );
@@ -1133,7 +1133,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
11331133

11341134
x = ndarray( dt, oneTo( numel( sh )*2, dt ), sh, st, o, ord );
11351135

1136-
v = scalar2ndarray( 8.0, {
1136+
v = scalar2ndarray( -99.0, {
11371137
'dtype': 'float64'
11381138
});
11391139
actual = includes( [ x, v ] );
@@ -1168,7 +1168,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
11681168

11691169
x = ndarray( dt, new Complex128Array( xbuf ), sh, st, o, ord );
11701170

1171-
v = scalar2ndarray( new Complex128( 1.0, 0.0 ), {
1171+
v = scalar2ndarray( new Complex128( -99.0, -99.0 ), {
11721172
'dtype': 'complex128'
11731173
});
11741174
actual = includes( [ x, v ] );
@@ -1203,7 +1203,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
12031203

12041204
x = ndarray( dt, new Complex128Array( xbuf ), sh, st, o, ord );
12051205

1206-
v = scalar2ndarray( new Complex128( 1.0, 0.0 ), {
1206+
v = scalar2ndarray( new Complex128( -99.0, -99.0 ), {
12071207
'dtype': 'complex128'
12081208
});
12091209
actual = includes( [ x, v ] );
@@ -1420,7 +1420,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
14201420

14211421
x = ndarray( dt, toAccessorArray( oneTo( numel( sh ), dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
14221422

1423-
v = scalar2ndarray( 8.0, {
1423+
v = scalar2ndarray( -99.0, {
14241424
'dtype': 'float64'
14251425
});
14261426
actual = includes( [ x, v ] );
@@ -1453,7 +1453,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
14531453

14541454
x = ndarray( dt, toAccessorArray( oneTo( numel( sh ), dt ) ), sh, st, o, ord );
14551455

1456-
v = scalar2ndarray( 8.0, {
1456+
v = scalar2ndarray( -99.0, {
14571457
'dtype': 'float64'
14581458
});
14591459
actual = includes( [ x, v ] );
@@ -1555,7 +1555,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
15551555

15561556
x = ndarray( dt, toAccessorArray( oneTo( numel( sh )*2, dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
15571557

1558-
v = scalar2ndarray( 8.0, {
1558+
v = scalar2ndarray( -99.0, {
15591559
'dtype': 'float64'
15601560
});
15611561
actual = includes( [ x, v ] );
@@ -1591,7 +1591,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
15911591

15921592
x = ndarray( dt, toAccessorArray( oneTo( numel( sh )*2, dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
15931593

1594-
v = scalar2ndarray( 8.0, {
1594+
v = scalar2ndarray( -99.0, {
15951595
'dtype': 'float64'
15961596
});
15971597
actual = includes( [ x, v ] );
@@ -1627,7 +1627,7 @@ tape( 'the function tests whether a 3-dimensional ndarray contains a specified v
16271627

16281628
x = ndarray( dt, toAccessorArray( oneTo( numel( sh )*2, dt ) ), sh, st, o, ord ); // eslint-disable-line max-len
16291629

1630-
v = scalar2ndarray( 8.0, {
1630+
v = scalar2ndarray( -99.0, {
16311631
'dtype': 'float64'
16321632
});
16331633
actual = includes( [ x, v ] );

0 commit comments

Comments
 (0)