File: test-fix

package info (click to toggle)
pocketsphinx-python 1%3A0.1.15-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320 kB
  • sloc: python: 554; sh: 11; makefile: 9
file content (38 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
With our current version of sphinx, we get a different test result

---
 tests/test_phoneme.py |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

--- a/tests/test_phoneme.py
+++ b/tests/test_phoneme.py
@@ -51,7 +51,7 @@ class TestPhoneme(TestCase):
     def test_phoneme_hypothesis(self):
         self.assertEqual(
             self.ps.hypothesis(),
-            'SIL G OW F AO R D T AE N NG IY ZH ER S SIL'
+            'SIL G OW F AO R W ER D T AE N M IY IH ZH ER Z S V SIL'
         )
 
     def test_phoneme_best_phonemes(self):
@@ -62,14 +62,19 @@ class TestPhoneme(TestCase):
             'F',
             'AO',
             'R',
+            'W',
+            'ER',
             'D',
             'T',
             'AE',
             'N',
-            'NG',
+            'M',
             'IY',
+            'IH',
             'ZH',
             'ER',
+            'Z',
             'S',
+            'V',
             'SIL'
         ])