Skip to content

Commit

Permalink
add testing script and test transcriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
zyocum committed Mar 31, 2022
1 parent 096d3fe commit ba3951e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/run.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env zsh
TESTDEFAULT=${0:a:h}/test-transcriptions.txt
TESTFILE=${1:=$TESTDEFAULT}

time ( \
while read l; do
echo -n "$l " \
| tee /dev/stderr \
| (./ipa_grammar.py - >/dev/null 2>/dev/null) \
&& echo 'PASS' || echo 'FAIL'
done < $TESTFILE
)
18 changes: 18 additions & 0 deletions tests/test-transcriptions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/mǎi mài mâi mái/
/ˈkatən/
[ˈkhætn̩]
[ˈdʒæk|pɹəˌpɛəɹɪŋ ðə ˈweɪ|wɛnt ˈɒn‖]
[↑bɪn.ðɛɹ↘|↑dɐn.ðæt↘‖]
[túrán↑tʃí nè]
[xɤn˧˥ xaʊ˨˩˦]
[ˈɹɪðm̩]
[ˈhuːˀsð̩ɣ]
[ˈsr̩t͡sɛ]
[ɹ̝̍]
[ʙ̞̍]
èlʊ́kʊ́nyá
huʔ˩˥
mā
nu.jam.ɬ̩
a˩˥˥˩˦˥˩˨˧˦˧
[u ↑ˈvẽ.tu ˈnɔ.ɾtɯ ku.mɯˈso.ɐ.suˈpɾaɾ.kõˈmũi.tɐ ˩˧fu.ɾiɐ | mɐʃ ↑ˈku̯ɐ̃.tu.maiʃ.su˩˧pɾa.vɐ | maiz ↑u.viɐ↓ˈʒɐ̃.tɯ.si.ɐk.õʃ↓ˈɡa.va.suɐ ˧˩ka.pɐ | ɐˈtɛ ↑kiu ˈvẽ.tu ˈnɔɾ.tɯ ˧˩d̥z̥ʃtiu ǁ]

0 comments on commit ba3951e

Please sign in to comment.