UNPKG

@prelude/function

Version:

Function module.

11 lines 477 B
import * as F from './index.js'; test('implies', () => { const admin = (user) => user.admin; const archived = (user) => user.archived; const f = F.implies(admin, F.not(archived)); expect(f({ admin: false, archived: false })).toBe(true); expect(f({ admin: false, archived: true })).toBe(true); expect(f({ admin: true, archived: false })).toBe(true); expect(f({ admin: true, archived: true })).toBe(false); }); //# sourceMappingURL=implies.test.js.map