File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
23
23
var bench = require ( '@stdlib/bench' ) ;
24
24
var uniform = require ( '@stdlib/random/array/uniform' ) ;
25
- var isnan = require ( '@stdlib/math/base/assert/is-nan ' ) ;
25
+ var isnanf = require ( '@stdlib/math/base/assert/is-nanf ' ) ;
26
26
var pkg = require ( './../package.json' ) . name ;
27
27
var absf = require ( './../lib' ) ;
28
28
@@ -41,12 +41,12 @@ bench( pkg, function benchmark( b ) {
41
41
b . tic ( ) ;
42
42
for ( i = 0 ; i < b . iterations ; i ++ ) {
43
43
y = absf ( x [ i % x . length ] ) ;
44
- if ( isnan ( y ) ) {
44
+ if ( isnanf ( y ) ) {
45
45
b . fail ( 'should not return NaN' ) ;
46
46
}
47
47
}
48
48
b . toc ( ) ;
49
- if ( isnan ( y ) ) {
49
+ if ( isnanf ( y ) ) {
50
50
b . fail ( 'should not return NaN' ) ;
51
51
}
52
52
b . pass ( 'benchmark finished' ) ;
You can’t perform that action at this time.
0 commit comments