tFix tests - transliterate - Transliteration engine
HTML git clone git://lumidify.org/transliterate.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ee44072feff9eeba94834b38a2d710f6a9454bde
DIR parent 186074f5c746c6f3452da864722a9fd7da2dd964
HTML Author: lumidify <nobody@lumidify.org>
Date: Mon, 30 Mar 2020 13:46:05 +0200
Fix tests
Diffstat:
M tests/README | 3 +++
M tests/test1/config | 2 +-
M tests/test2/config | 4 ++--
M tests/test3/config | 4 ++--
4 files changed, 8 insertions(+), 5 deletions(-)
---
DIR diff --git a/tests/README b/tests/README
t@@ -2,3 +2,6 @@ Run ./alltests.sh for all tests.
There aren't very many tests here yet. Maybe I'll have
time someday to test all the edge cases properly.
+
+test4 can be used to play around with the "Add replacement"
+function in the GUI.
DIR diff --git a/tests/test1/config b/tests/test1/config
t@@ -6,7 +6,7 @@ ignore "../data/ignore.txt"
table words "../data/words.txt"
table endings "../data/endings.txt"
-expand words same endings
+expand words endings
match "\d+" "num_replaced" beginword
DIR diff --git a/tests/test2/config b/tests/test2/config
t@@ -8,12 +8,12 @@ ignore "../data/ignore.txt"
table words "../data/words1.txt"
table endings "../data/endings_choices.txt"
-expand words other_name endings
+expand words endings
match "-\d" "-r" endword
match "w ord" "word" beginword nofinal
matchignore "\dhi\d"
group beginword endword
-replace other_name
+replace words
endgroup
DIR diff --git a/tests/test3/config b/tests/test3/config
t@@ -8,11 +8,11 @@ ignore "../data/ignore.txt"
table words "../data/words1.txt"
table endings "../data/endings_choices.txt"
-expand words other_name endings noroot
+expand words endings noroot
match "w ord" "word" beginword nofinal
matchignore "-d" endword
group beginword endword
-replace other_name
+replace words
endgroup