Skip to content

Commit 601434c

Browse files
chore: fix JavaScript lint errors
PR-URL: #9114 Closes: #9108 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 6ef2522 commit 601434c

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

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

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -296,20 +296,20 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
296296

297297
srotm( 3, x, 2, 0, y, 2, 0, param );
298298

299-
xe = new Float32Array( [
299+
xe = new Float32Array([
300300
-18.0, // 0
301301
2.0,
302302
-24.0, // 1
303303
4.0,
304304
-30.0 // 2
305-
] );
306-
ye = new Float32Array( [
305+
]);
306+
ye = new Float32Array([
307307
2.0, // 0
308308
7.0,
309309
6.0, // 1
310310
9.0,
311311
10.0 // 2
312-
] );
312+
]);
313313

314314
isApprox( t, x, xe, 1.0 );
315315
isApprox( t, y, ye, 1.0 );
@@ -332,20 +332,20 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
332332

333333
srotm( 2, x, 3, 0, y, 3, 0, param );
334334

335-
xe = new Float32Array( [
335+
xe = new Float32Array([
336336
6.0, // 0
337337
2.0,
338338
3.0,
339339
9.0, // 1
340340
5.0
341-
] );
342-
ye = new Float32Array( [
341+
]);
342+
ye = new Float32Array([
343343
-1.0, // 0
344344
7.0,
345345
8.0,
346346
-4.0, // 1
347347
10.0
348-
] );
348+
]);
349349

350350
isApprox( t, x, xe, 1.0 );
351351
isApprox( t, y, ye, 1.0 );
@@ -379,20 +379,20 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
379379

380380
srotm( 2, x, 2, 0, y, 1, 0, param );
381381

382-
xe = new Float32Array( [
382+
xe = new Float32Array([
383383
-17.0, // 0
384384
2.0,
385385
-18.0, // 1
386386
4.0,
387387
5.0
388-
] );
389-
ye = new Float32Array( [
388+
]);
389+
ye = new Float32Array([
390390
8.0, // 0
391391
13.0, // 1
392392
8.0,
393393
9.0,
394394
10.0
395-
] );
395+
]);
396396

397397
isApprox( t, x, xe, 2.0 );
398398
isApprox( t, y, ye, 2.0 );
@@ -415,20 +415,20 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
415415

416416
srotm( 2, x, 3, 0, y, 1, 0, param );
417417

418-
xe = new Float32Array( [
418+
xe = new Float32Array([
419419
-18.0, // 0
420420
2.0,
421421
3.0,
422422
-21.0, // 1
423423
5.0
424-
] );
425-
ye = new Float32Array( [
424+
]);
425+
ye = new Float32Array([
426426
2.0, // 0
427427
8.0, // 1
428428
8.0,
429429
9.0,
430430
10.0
431-
] );
431+
]);
432432

433433
isApprox( t, x, xe, 1.0 );
434434
isApprox( t, y, ye, 1.0 );
@@ -486,20 +486,20 @@ tape( 'the function supports an `x` offset', opts, function test( t ) {
486486

487487
srotm( 2, x, -2, 2, y, 1, 0, param );
488488

489-
xe = new Float32Array( [
489+
xe = new Float32Array([
490490
-21.0, // 1
491491
2.0,
492492
-18.0, // 0
493493
4.0,
494494
5.0
495-
] );
496-
ye = new Float32Array( [
495+
]);
496+
ye = new Float32Array([
497497
6.0, // 0
498498
2.0, // 1
499499
8.0,
500500
9.0,
501501
10.0
502-
] );
502+
]);
503503

504504
isApprox( t, x, xe, 2.0 );
505505
isApprox( t, y, ye, 2.0 );
@@ -522,20 +522,20 @@ tape( 'the function supports an `x` offset', opts, function test( t ) {
522522

523523
srotm( 3, x, -2, 4, y, 1, 0, param );
524524

525-
xe = new Float32Array( [
525+
xe = new Float32Array([
526526
8.0, // 2
527527
2.0,
528528
7.0, // 1
529529
4.0,
530530
6.0 // 0
531-
] );
532-
ye = new Float32Array( [
531+
]);
532+
ye = new Float32Array([
533533
-5.0, // 0
534534
-3.0, // 1
535535
-1.0, // 2
536536
9.0,
537537
10.0
538-
] );
538+
]);
539539

540540
isApprox( t, x, xe, 2.0 );
541541
isApprox( t, y, ye, 2.0 );
@@ -568,20 +568,20 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
568568

569569
srotm( 3, x, 1, 0, y, 2, 0, param );
570570

571-
xe = new Float32Array( [
571+
xe = new Float32Array([
572572
-17.0, // 0
573573
-22.0, // 1
574574
-27.0, // 2
575575
4.0,
576576
5.0
577-
] );
578-
ye = new Float32Array( [
577+
]);
578+
ye = new Float32Array([
579579
8.0, // 0
580580
7.0,
581581
12.0, // 1
582582
9.0,
583583
16.0 // 2
584-
] );
584+
]);
585585

586586
isApprox( t, x, xe, 1.0 );
587587
isApprox( t, y, ye, 1.0 );
@@ -604,20 +604,20 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
604604

605605
srotm( 2, x, 1, 0, y, 3, 0, param );
606606

607-
xe = new Float32Array( [
607+
xe = new Float32Array([
608608
-18.0, // 0
609609
-27.0, // 1
610610
3.0,
611611
4.0,
612612
5.0
613-
] );
614-
ye = new Float32Array( [
613+
]);
614+
ye = new Float32Array([
615615
2.0, // 0
616616
7.0,
617617
8.0,
618618
4.0, // 1
619619
10.0
620-
] );
620+
]);
621621

622622
isApprox( t, x, xe, 1.0 );
623623
isApprox( t, y, ye, 1.0 );
@@ -675,20 +675,20 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
675675

676676
srotm( 2, x, 1, 0, y, -2, 2, param );
677677

678-
xe = new Float32Array( [
678+
xe = new Float32Array([
679679
8.0, // 0
680680
6.0, // 1
681681
3.0,
682682
4.0,
683683
5.0
684-
] );
685-
ye = new Float32Array( [
684+
]);
685+
ye = new Float32Array([
686686
-2.0, // 1
687687
7.0,
688688
-1.0, // 0
689689
9.0,
690690
10.0
691-
] );
691+
]);
692692

693693
isApprox( t, x, xe, 2.0 );
694694
isApprox( t, y, ye, 2.0 );
@@ -711,20 +711,20 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
711711

712712
srotm( 3, x, 1, 0, y, -2, 4, param );
713713

714-
xe = new Float32Array( [
714+
xe = new Float32Array([
715715
-30.0, // 0
716716
-24.0, // 1
717717
-18.0, // 2
718718
4.0,
719719
5.0
720-
] );
721-
ye = new Float32Array( [
720+
]);
721+
ye = new Float32Array([
722722
6.0, // 2
723723
7.0,
724724
4.0, // 1
725725
9.0,
726726
2.0 // 0
727-
] );
727+
]);
728728

729729
isApprox( t, x, xe, 2.0 );
730730
isApprox( t, y, ye, 2.0 );

0 commit comments

Comments
 (0)