Skip to content

Commit

Permalink
test(ceil): add tests for typescript typings
Browse files Browse the repository at this point in the history
Ref #978
  • Loading branch information
char0n committed Oct 6, 2019
1 parent 4fbf439 commit 3caccbe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions types/test/ceil.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as RA from 'ramda-adjunct';

RA.ceil(.95); // $ExpectType number
RA.ceil(4); // $ExpectType number
RA.ceil(7.004); // $ExpectType number
RA.ceil(-0.95); // $ExpectType number
RA.ceil(-4); // $ExpectType number
RA.ceil(-7.004); // $ExpectType number

RA.ceil(null); // $ExpectError
RA.ceil(undefined); // $ExpectError
RA.ceil('a'); // $ExpectError

0 comments on commit 3caccbe

Please sign in to comment.