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