UNPKG

functionfoundry

Version:
11 lines (9 loc) 234 B
import cos from '../src/cos'; import error from '../src/error'; import test from 'tape'; test('cos', function(t) { t.plan(3); t.equal( cos(0), 1 ); t.equal( cos(NaN), error.value ); t.equal( cos('invalid'), error.value ); })