moy-fp
Version:
A functional programming library.
24 lines (20 loc) • 386 B
JavaScript
import __ from '../../src/Function/__'
/**
* Ord a => a -> a -> Boolean
*/
import lt from '../../src/Relation/lt'
test('lt(not using __), return false', () => {
expect(
lt(1)(2)
).toBeFalsy()
})
test('lt(not using __), return true', () => {
expect(
lt(1)(0)
).toBeTruthy()
})
test('lt(using __), return false', () => {
expect(
lt(__, 2)(1)
).toBeFalsy()
})