UNPKG

aureooms-js-number

Version:

Primitive number type arithmetic for JavaScript

21 lines (14 loc) 352 B
import test from 'ava' ; import * as number from '../../../src' ; test( "stringify", t => { const one = function ( a ) { t.deepEqual( number.stringify( a ), a.toString( ), "stringify(" + a + ")" ); } ; const n = 10; for ( let i = 0 ; i < n ; ++i ) { one( Math.random( ) ); } one( Infinity ); one( 0 ); one( -Infinity ); } );