Browse Source

Add a test case for skipping multi-word replacements in emoji.

master
Reece H. Dunn 7 years ago
parent
commit
172859c4dd
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      tests/translate.test

+ 4
- 1
tests/translate.test View File

@@ -42,8 +42,11 @@ test_phonemes ka " 'imedg,ats#ru,ebuli m'agram Sv'ebis g'amomx,atveli s'axe" "
# 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:z r'eInboU" "β™ˆ 🌈"
test_phonemes en " Ekskla#m'eIS@n kw'EstS@n m'A@k" "⁉" # multi-word

# multi-word emoji
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 r'eInboU" "⁉ 🌈"
test_phonemes en " r'oUlIN 0nD@ fl'o@ l'aafIN" "🀣" # skip words

# bug: https://github.com/espeak-ng/espeak-ng/issues/471
test_phonemes sk " sm'eju:tsa s'a tv'a:R" "☺"

Loading…
Cancel
Save