commit ee44072feff9eeba94834b38a2d710f6a9454bde
parent 186074f5c746c6f3452da864722a9fd7da2dd964
Author: lumidify <nobody@lumidify.org>
Date: Mon, 30 Mar 2020 13:46:05 +0200
Fix tests
Diffstat:
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/tests/README b/tests/README
@@ -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.
diff --git a/tests/test1/config b/tests/test1/config
@@ -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
diff --git a/tests/test2/config b/tests/test2/config
@@ -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
diff --git a/tests/test3/config b/tests/test3/config
@@ -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