Test(vowelSign):add test of volweSign

This commit is contained in:
zainabdnaya 2023-10-25 08:29:45 -04:00
parent 0d9b6958a0
commit 1a58f03ed4
1 changed files with 14 additions and 0 deletions

View File

@ -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)