import { describe, expect, it } from '@jest/globals'; import { toNative as $$, _, fromNative as __, cnst, id, undef } from '../src/core'; describe('id', () => { it('returns first argument', () => { expect($$(id(__('first')))).toBe('first'); }); }); describe('cnst', () => { it('returns first argument after receiving second', () => { expect($$(cnst(__('first'))(__('second')))).toBe('first'); }); it('ignores second argument', () => { expect($$(cnst(__('first'))(undef))).toBe('first'); }); }); describe('pipe', () => { it.failing('applies both functions in order', () => { expect('Not implemented').toBe('Implemented'); }); });