1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import * as lang from './language';
test('correctly output basic vowels', () => {
expect(lang.vowelFeaturesToIpa({
height: lang.VowelHeight.Close,
depth: lang.VowelDepth.Front,
round: false,
long: false,
nasal: false,
})).toBe('i');
expect(lang.vowelFeaturesToIpa({
height: lang.VowelHeight.Mid,
depth: lang.VowelDepth.Central,
round: false,
long: false,
nasal: false,
})).toBe('ə');
expect(lang.vowelFeaturesToIpa({
height: lang.VowelHeight.Open,
depth: lang.VowelDepth.Back,
round: true,
long: false,
nasal: true,
})).toBe('ɒ̃');
expect(lang.vowelFeaturesToIpa({
height: lang.VowelHeight.CloseMid,
depth: lang.VowelDepth.Front,
round: false,
long: true,
nasal: false,
})).toBe('eː');
});
|