Skip to content

Commit 827dd45

Browse files
committed
chore: fix JavaScript lint errors (issue #10722)
1 parent e09a028 commit 827dd45

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.js

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

288288
srotm( 3, x, 2, 0, y, 2, 0, param );
289289

290-
xe = new Float32Array( [
290+
xe = new Float32Array([
291291
-18.0, // 0
292292
2.0,
293293
-24.0, // 1
294294
4.0,
295295
-30.0 // 2
296-
] );
297-
ye = new Float32Array( [
296+
]);
297+
ye = new Float32Array([
298298
2.0, // 0
299299
7.0,
300300
6.0, // 1
301301
9.0,
302302
10.0 // 2
303-
] );
303+
]);
304304

305305
isApprox( t, x, xe, 1.0 );
306306
isApprox( t, y, ye, 1.0 );
@@ -323,20 +323,20 @@ tape( 'the function applies a plane rotation', function test( t ) {
323323

324324
srotm( 2, x, 3, 0, y, 3, 0, param );
325325

326-
xe = new Float32Array( [
326+
xe = new Float32Array([
327327
6.0, // 0
328328
2.0,
329329
3.0,
330330
9.0, // 1
331331
5.0
332-
] );
333-
ye = new Float32Array( [
332+
]);
333+
ye = new Float32Array([
334334
-1.0, // 0
335335
7.0,
336336
8.0,
337337
-4.0, // 1
338338
10.0
339-
] );
339+
]);
340340

341341
isApprox( t, x, xe, 1.0 );
342342
isApprox( t, y, ye, 1.0 );
@@ -370,20 +370,20 @@ tape( 'the function supports an `x` stride', function test( t ) {
370370

371371
srotm( 2, x, 2, 0, y, 1, 0, param );
372372

373-
xe = new Float32Array( [
373+
xe = new Float32Array([
374374
-17.0, // 0
375375
2.0,
376376
-18.0, // 1
377377
4.0,
378378
5.0
379-
] );
380-
ye = new Float32Array( [
379+
]);
380+
ye = new Float32Array([
381381
8.0, // 0
382382
13.0, // 1
383383
8.0,
384384
9.0,
385385
10.0
386-
] );
386+
]);
387387

388388
isApprox( t, x, xe, 2.0 );
389389
isApprox( t, y, ye, 2.0 );
@@ -406,20 +406,20 @@ tape( 'the function supports an `x` stride', function test( t ) {
406406

407407
srotm( 2, x, 3, 0, y, 1, 0, param );
408408

409-
xe = new Float32Array( [
409+
xe = new Float32Array([
410410
-18.0, // 0
411411
2.0,
412412
3.0,
413413
-21.0, // 1
414414
5.0
415-
] );
416-
ye = new Float32Array( [
415+
]);
416+
ye = new Float32Array([
417417
2.0, // 0
418418
8.0, // 1
419419
8.0,
420420
9.0,
421421
10.0
422-
] );
422+
]);
423423

424424
isApprox( t, x, xe, 1.0 );
425425
isApprox( t, y, ye, 1.0 );
@@ -477,20 +477,20 @@ tape( 'the function supports an `x` offset', function test( t ) {
477477

478478
srotm( 2, x, -2, 2, y, 1, 0, param );
479479

480-
xe = new Float32Array( [
480+
xe = new Float32Array([
481481
-21.0, // 1
482482
2.0,
483483
-18.0, // 0
484484
4.0,
485485
5.0
486-
] );
487-
ye = new Float32Array( [
486+
]);
487+
ye = new Float32Array([
488488
6.0, // 0
489489
2.0, // 1
490490
8.0,
491491
9.0,
492492
10.0
493-
] );
493+
]);
494494

495495
isApprox( t, x, xe, 2.0 );
496496
isApprox( t, y, ye, 2.0 );
@@ -513,20 +513,20 @@ tape( 'the function supports an `x` offset', function test( t ) {
513513

514514
srotm( 3, x, -2, 4, y, 1, 0, param );
515515

516-
xe = new Float32Array( [
516+
xe = new Float32Array([
517517
8.0, // 2
518518
2.0,
519519
7.0, // 1
520520
4.0,
521521
6.0 // 0
522-
] );
523-
ye = new Float32Array( [
522+
]);
523+
ye = new Float32Array([
524524
-5.0, // 0
525525
-3.0, // 1
526526
-1.0, // 2
527527
9.0,
528528
10.0
529-
] );
529+
]);
530530

531531
isApprox( t, x, xe, 2.0 );
532532
isApprox( t, y, ye, 2.0 );
@@ -559,20 +559,20 @@ tape( 'the function supports a `y` stride', function test( t ) {
559559

560560
srotm( 3, x, 1, 0, y, 2, 0, param );
561561

562-
xe = new Float32Array( [
562+
xe = new Float32Array([
563563
-17.0, // 0
564564
-22.0, // 1
565565
-27.0, // 2
566566
4.0,
567567
5.0
568-
] );
569-
ye = new Float32Array( [
568+
]);
569+
ye = new Float32Array([
570570
8.0, // 0
571571
7.0,
572572
12.0, // 1
573573
9.0,
574574
16.0 // 2
575-
] );
575+
]);
576576

577577
isApprox( t, x, xe, 1.0 );
578578
isApprox( t, y, ye, 1.0 );
@@ -595,20 +595,20 @@ tape( 'the function supports a `y` stride', function test( t ) {
595595

596596
srotm( 2, x, 1, 0, y, 3, 0, param );
597597

598-
xe = new Float32Array( [
598+
xe = new Float32Array([
599599
-18.0, // 0
600600
-27.0, // 1
601601
3.0,
602602
4.0,
603603
5.0
604-
] );
605-
ye = new Float32Array( [
604+
]);
605+
ye = new Float32Array([
606606
2.0, // 0
607607
7.0,
608608
8.0,
609609
4.0, // 1
610610
10.0
611-
] );
611+
]);
612612

613613
isApprox( t, x, xe, 1.0 );
614614
isApprox( t, y, ye, 1.0 );
@@ -666,20 +666,20 @@ tape( 'the function supports a `y` offset', function test( t ) {
666666

667667
srotm( 2, x, 1, 0, y, -2, 2, param );
668668

669-
xe = new Float32Array( [
669+
xe = new Float32Array([
670670
8.0, // 0
671671
6.0, // 1
672672
3.0,
673673
4.0,
674674
5.0
675-
] );
676-
ye = new Float32Array( [
675+
]);
676+
ye = new Float32Array([
677677
-2.0, // 1
678678
7.0,
679679
-1.0, // 0
680680
9.0,
681681
10.0
682-
] );
682+
]);
683683

684684
isApprox( t, x, xe, 2.0 );
685685
isApprox( t, y, ye, 2.0 );
@@ -702,20 +702,20 @@ tape( 'the function supports a `y` offset', function test( t ) {
702702

703703
srotm( 3, x, 1, 0, y, -2, 4, param );
704704

705-
xe = new Float32Array( [
705+
xe = new Float32Array([
706706
-30.0, // 0
707707
-24.0, // 1
708708
-18.0, // 2
709709
4.0,
710710
5.0
711-
] );
712-
ye = new Float32Array( [
711+
]);
712+
ye = new Float32Array([
713713
6.0, // 2
714714
7.0,
715715
4.0, // 1
716716
9.0,
717717
2.0 // 0
718-
] );
718+
]);
719719

720720
isApprox( t, x, xe, 2.0 );
721721
isApprox( t, y, ye, 2.0 );

0 commit comments

Comments
 (0)