From 1a58f03ed4897cd264c806fc95d9aced01ab4d06 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Wed, 25 Oct 2023 08:29:45 -0400 Subject: [PATCH] Test(vowelSign):add test of volweSign --- js/tests/vowelSign_test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 js/tests/vowelSign_test.js 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