diff options
author | sanine <sanine.not@pm.me> | 2024-05-06 23:54:37 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2024-05-06 23:54:37 -0500 |
commit | 5ce6a8f7b30b54b1d728c0571de799e99c79934c (patch) | |
tree | 37ee9fc5320f4dcae0502c451c0104fc110330a8 /src/language.test.ts | |
parent | 3c5c5ef59088a96b7988652f2dfef3d8a771f464 (diff) |
add nice vowel positionsmain
Diffstat (limited to 'src/language.test.ts')
-rw-r--r-- | src/language.test.ts | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/language.test.ts b/src/language.test.ts index 62b03a2..3564363 100644 --- a/src/language.test.ts +++ b/src/language.test.ts @@ -130,7 +130,6 @@ test('all consonants can be selected', () => { }, ]); - expect(lang.pickConsonants( [ lang.ConsonantPlace.Bilabial, lang.ConsonantPlace.Alveolar ], [ lang.ConsonantManner.Plosive, lang.ConsonantManner.Tap ], @@ -139,3 +138,19 @@ test('all consonants can be selected', () => { 'p', 'b', 'ⱱ̟', 't', 'd', 'ɾ̥', 'ɾ', ]); }); + + +test('vowel positions work correctly', () => { + expect( + lang._vowelXY(lang.VowelHeight.Open, lang.VowelDepth.Back) + ).toEqual([0, 0]); + expect( + lang._vowelXY(lang.VowelHeight.NearOpen, lang.VowelDepth.Central) + ).toEqual([1.5, 1]); + expect( + lang._vowelXY(lang.VowelHeight.Close, lang.VowelDepth.Front) + ).toEqual([8, 6]); + expect( + lang._vowelXY(lang.VowelHeight.Close, lang.VowelDepth.Back) + ).toEqual([0, 6]); +}); |