diff --git a/js/tests/vowelSign_test.js b/js/tests/vowelSign_test.js new file mode 100644 index 000000000..766ba479e --- /dev/null +++ b/js/tests/vowelSign_test.js @@ -0,0 +1,14 @@ +export const tests = [] +const t = (f) => tests.push(f) + +t(({ eq }) => eq(vowelSign("Hello, World!"), "H-ll-, W-rld!")) +t(({ eq }) => eq(vowelSign("This Is a Test"), "Th-s +s - T-st")) +t(({ eq }) => eq(vowelSign("Open the door nOw"), "+p-n th- d--r n+w")) +t(({ eq }) => eq(vowelSign(""), "")) +t(({ eq }) => eq(vowelSign("AO\tU\s+fiyu"), "++\t+s+f-y-")) +t(({ eq }) => eq(vowelSign("E_E"), "+_+")) +t(({ eq }) => eq(vowelSign("d-*om!hviUq"), "d-*-m!hv-+q")) +t(({ eq }) => eq(vowelSign("bcdfgh"), "bcdfgh")) + + +Object.freeze(tests) \ No newline at end of file