UNPKG

functionfoundry

Version:
10 lines (8 loc) 174 B
import test from 'tape' import int from '../src/int' test( 'int', (t) => { t.plan(3) t.equal( int( 1.2 ), 1 ) t.equal( int( 1.9 ), 1 ) t.equal( int( -1.9 ), -2 ) })