Browse Source

Add a test case for espeak-ng issue #471.

master
Reece H. Dunn 7 years ago
parent
commit
b1754542fb
1 changed files with 8 additions and 5 deletions
  1. 8
    5
      tests/translate.test

+ 8
- 5
tests/translate.test View File

# correct word stress # correct word stress
test_phonemes en " s'VmTIN Imp'o@t@nt" "something important" test_phonemes en " s'VmTIN Imp'o@t@nt" "something important"


# A list entry that uses '$text' to map to another list entry crashes 1.49.2 multi-word support:
test_phonemes en " d'eIbju:tI2d" "débuted"
test_phonemes en-US " d'eIbju:t#I#d" "débuted"

# bug: https://github.com/nvaccess/nvda/issues/7740 # bug: https://github.com/nvaccess/nvda/issues/7740
test_phonemes ta " 'il." "ள்" test_phonemes ta " 'il." "ள்"
test_phonemes my " kon'i" "7" test_phonemes my " kon'i" "7"
# TODO: Fix adjacent emoji without whitespace so the pronunciation is separated by a space. # TODO: Fix adjacent emoji without whitespace so the pronunciation is separated by a space.
test_phonemes en " 'e@ri:zr'eInboU" "♈🌈" test_phonemes en " 'e@ri:zr'eInboU" "♈🌈"
test_phonemes en " 'e@ri:z r'eInboU" "♈ 🌈" test_phonemes en " 'e@ri:z r'eInboU" "♈ 🌈"
# multi-word
test_phonemes en " Ekskla#m'eIS@n kw'EstS@n m'A@k" "⁉"
test_phonemes en " Ekskla#m'eIS@n kw'EstS@n m'A@k" "⁉" # multi-word
test_phonemes en " Ekskla#m'eIS@n kw'EstS@n m'A@k r'eInboU" "⁉ 🌈" test_phonemes en " Ekskla#m'eIS@n kw'EstS@n m'A@k r'eInboU" "⁉ 🌈"


# A list entry that uses '$text' to map to another list entry crashes 1.49.2 multi-word support:
test_phonemes en " d'eIbju:tI2d" "débuted"
test_phonemes en-US " d'eIbju:t#I#d" "débuted"
# bug: https://github.com/espeak-ng/espeak-ng/issues/471
test_phonemes sk " sm'eju:tsa s'a tv'a:R" "☺"
test_phonemes sk " bl'ax sm'eju:tsa 'es,a: tv'a:R" "blah ☺"

Loading…
Cancel
Save