PrevPrevious commit
Next Next commit
feat(t-median): fixing styling
  • Loading branch information
Aadish Jain authored and Aadish Jain committedDec 15, 2024
commit 2b7c99726f7db811988cf952d02afc6dfaa75ce2
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,4 +55,4 @@ bench( pkg, function benchmark( b ) {
}
b.pass( 'benchmark finished' );
b.end();
} );
});
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,13 +45,13 @@ tape( 'main export is a function', opts, function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof median, 'function', 'main export is a function' );
t.end();
} );
});

tape( 'if provided `NaN` for the parameter, the function returns `NaN`', opts, function test( t ) {
var y = median( NaN );
t.equal( isnan( y ), true, 'returns NaN' );
t.end();
} );
});

tape( 'if provided a negative value for `v`, the function returns `NaN`', opts, function test( t ) {
var y;
Expand All@@ -63,7 +63,7 @@ tape( 'if provided a negative value for `v`, the function returns `NaN`', opts,
t.equal( isnan( y ), true, 'returns NaN' );

t.end();
} );
});

tape( 'the function evaluates the median for a Student\'s t-distribution', opts, function test( t ) {
var expected;
Expand All@@ -78,4 +78,4 @@ tape( 'the function evaluates the median for a Student\'s t-distribution', opts,
t.equal( y, expected, 'v: ' + v + ', y: ' + y + ', expected: ' + expected );
}
t.end();
} );
});
Loading