public/js/tests/ion-out_test.js

15 lines
371 B
JavaScript

export const tests = []
const t = (f) => tests.push(f)
t(({ eq }) => eq(ionOut('attention, direction'), ['attent', 'direct']))
t(({ eq }) => eq(ionOut('promotion, provision'), ['promot']))
t(({ eq }) => eq(ionOut('transfusion'), []))
t(({ eq }) =>
eq(ionOut(' 1st position is the vision of the 2nd position'), [
'posit',
'posit',
]),
)
Object.freeze(tests)