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