@@ -161,7 +161,7 @@ tape( 'the function returns a function (no arguments)', function test( t ) {
161
161
} ) ;
162
162
163
163
tape ( 'the function returns a function (options)' , function test ( t ) {
164
- var harness = createHarness ( { } ) ;
164
+ var harness = createHarness ( { } ) ;
165
165
t . strictEqual ( typeof harness , 'function' , 'returns a function' ) ;
166
166
t . end ( ) ;
167
167
} ) ;
@@ -173,7 +173,7 @@ tape( 'the function returns a function (callback)', function test( t ) {
173
173
} ) ;
174
174
175
175
tape ( 'the function returns a function (more than 1 argument)' , function test ( t ) {
176
- var harness = createHarness ( { } , noop ) ;
176
+ var harness = createHarness ( { } , noop ) ;
177
177
t . strictEqual ( typeof harness , 'function' , 'returns a function' ) ;
178
178
t . end ( ) ;
179
179
} ) ;
@@ -379,7 +379,7 @@ tape( 'the returned function runs benchmarks (sync)', function test( t ) {
379
379
function beep ( b ) {
380
380
var i ;
381
381
b . tic ( ) ;
382
- for ( i = 0 ; i < b . iterations ; i ++ ) {
382
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
383
383
b . ok ( true , 'is okay' ) ;
384
384
}
385
385
b . toc ( ) ;
@@ -389,7 +389,7 @@ tape( 'the returned function runs benchmarks (sync)', function test( t ) {
389
389
function boop ( b ) {
390
390
var i ;
391
391
b . tic ( ) ;
392
- for ( i = 0 ; i < b . iterations ; i ++ ) {
392
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
393
393
b . equal ( true , true , 'is equal' ) ;
394
394
}
395
395
b . toc ( ) ;
@@ -505,7 +505,7 @@ tape( 'the returned function runs benchmarks (sync and async)', function test( t
505
505
function beep ( b ) {
506
506
var i ;
507
507
b . tic ( ) ;
508
- for ( i = 0 ; i < b . iterations ; i ++ ) {
508
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
509
509
b . ok ( true , 'is okay' ) ;
510
510
}
511
511
b . toc ( ) ;
@@ -571,7 +571,7 @@ tape( 'if the `iterations` option is `null`, the returned function supports auto
571
571
t . strictEqual ( b . iterations >= 1 , true , 'iteration number is >= 1' ) ;
572
572
573
573
b . tic ( ) ;
574
- for ( i = 0 ; i < b . iterations ; i ++ ) {
574
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
575
575
x = ( randu ( ) * 100.0 ) - 50.0 ;
576
576
y = cos ( x ) ;
577
577
if ( y < - 1.0 || y > 1.0 ) {
@@ -646,7 +646,7 @@ tape( 'by default, the `iterations` option is `null` and the number of repeats i
646
646
t . strictEqual ( b . iterations >= 1 , true , 'iteration number is >= 1' ) ;
647
647
648
648
b . tic ( ) ;
649
- for ( i = 0 ; i < b . iterations ; i ++ ) {
649
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
650
650
x = ( randu ( ) * 100.0 ) - 50.0 ;
651
651
y = cos ( x ) ;
652
652
if ( y < - 1.0 || y > 1.0 ) {
@@ -735,7 +735,7 @@ tape( 'if the `skip` option is `true`, the returned function skips a benchmark',
735
735
t . strictEqual ( b . iterations >= 1 , true , 'iteration number is >= 1' ) ;
736
736
737
737
b . tic ( ) ;
738
- for ( i = 0 ; i < b . iterations ; i ++ ) {
738
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
739
739
x = ( randu ( ) * 100.0 ) - 50.0 ;
740
740
y = cos ( x ) ;
741
741
if ( y < - 1.0 || y > 1.0 ) {
@@ -852,7 +852,7 @@ tape( 'the `createStream` method supports returning an object mode stream', func
852
852
function beep ( b ) {
853
853
var i ;
854
854
b . tic ( ) ;
855
- for ( i = 0 ; i < b . iterations ; i ++ ) {
855
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
856
856
b . ok ( true , 'is okay' ) ;
857
857
}
858
858
b . toc ( ) ;
@@ -917,7 +917,7 @@ tape( 'if all benchmarks succeed, the harness exit code is `0`', function test(
917
917
var i ;
918
918
919
919
b . tic ( ) ;
920
- for ( i = 0 ; i < b . iterations ; i ++ ) {
920
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
921
921
x = ( randu ( ) * 100.0 ) - 50.0 ;
922
922
y = cos ( x ) ;
923
923
if ( y < - 1.0 && y > 1.0 ) {
@@ -984,7 +984,7 @@ tape( 'if a benchmark fails, the harness exit code is `1`', function test( t ) {
984
984
var i ;
985
985
986
986
b . tic ( ) ;
987
- for ( i = 0 ; i < b . iterations ; i ++ ) {
987
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
988
988
x = ( randu ( ) * 100.0 ) - 50.0 ;
989
989
y = cos ( x ) ;
990
990
if ( y >= - 1.0 && y <= 1.0 ) {
@@ -1057,7 +1057,7 @@ tape( 'the function supports automatically closing a benchmark harness', functio
1057
1057
var i ;
1058
1058
1059
1059
b . tic ( ) ;
1060
- for ( i = 0 ; i < b . iterations ; i ++ ) {
1060
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
1061
1061
x = ( randu ( ) * 100.0 ) - 50.0 ;
1062
1062
y = cos ( x ) ;
1063
1063
if ( y < - 1.0 && y > 1.0 ) {
@@ -1145,7 +1145,7 @@ tape( 'the function supports manually closing a benchmark harness', function tes
1145
1145
var i ;
1146
1146
1147
1147
b . tic ( ) ;
1148
- for ( i = 0 ; i < b . iterations ; i ++ ) {
1148
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
1149
1149
x = ( randu ( ) * 100.0 ) - 50.0 ;
1150
1150
y = cos ( x ) ;
1151
1151
if ( y < - 1.0 && y > 1.0 ) {
@@ -1254,7 +1254,7 @@ tape( 'the function supports forcefully exiting a benchmark harness (while runni
1254
1254
harness . exit ( ) ;
1255
1255
}
1256
1256
b . tic ( ) ;
1257
- for ( i = 0 ; i < b . iterations ; i ++ ) {
1257
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
1258
1258
x = ( randu ( ) * 100.0 ) - 50.0 ;
1259
1259
y = cos ( x ) ;
1260
1260
if ( y < - 1.0 && y > 1.0 ) {
@@ -1309,7 +1309,7 @@ tape( 'the function supports forcefully exiting a benchmark harness (after runni
1309
1309
var i ;
1310
1310
1311
1311
b . tic ( ) ;
1312
- for ( i = 0 ; i < b . iterations ; i ++ ) {
1312
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
1313
1313
x = ( randu ( ) * 100.0 ) - 50.0 ;
1314
1314
y = cos ( x ) ;
1315
1315
if ( y < - 1.0 && y > 1.0 ) {
@@ -1386,7 +1386,7 @@ tape( 'attempting to exit a harness after the harness has closed is a no-op', fu
1386
1386
var i ;
1387
1387
1388
1388
b . tic ( ) ;
1389
- for ( i = 0 ; i < b . iterations ; i ++ ) {
1389
+ for ( i = 0 ; i < b . iterations ; i ++ ) {
1390
1390
x = ( randu ( ) * 100.0 ) - 50.0 ;
1391
1391
y = cos ( x ) ;
1392
1392
if ( y < - 1.0 && y > 1.0 ) {
0 commit comments