moy-fp
Version:
A functional programming library.
24 lines (20 loc) • 379 B
JavaScript
import __ from '../../src/Function/__'
/**
* * -> Boolean
*/
import not from '../../src/Logic/not'
test('not(not using __), return true', () => {
expect(
not('')
).toBeTruthy()
})
test('not(not using __), return false', () => {
expect(
not('murakami')
).toBeFalsy()
})
test('not(using __), return true', () => {
expect(
not(__)('')
).toBeTruthy()
})