UNPKG

moy-fp

Version:
24 lines (20 loc) 356 B
import __ from '../../src/Function/__' /** * b -> a -> a | b */ import and from '../../src/Logic/and' test('and(not using __), return a', () => { expect( and(2)(0) ).toBe(0) }) test('and(not using __), return b', () => { expect( and(0)(2) ).toBe(0) }) test('and(using __), return a', () => { expect( and(__, 0)(2) ).toBe(0) })