New harness tests by zstanecic
Includes tests for
- Czech 8-dots
- Croatian 8-dots
- Croatian grade 1
- Polish 8-dots
- Serbian grade 1
A tests for Polish grade 1 will follow
see #57
diff --git a/tests/harness/Makefile.am b/tests/harness/Makefile.am
index c99a7d4..855afbe 100644
--- a/tests/harness/Makefile.am
+++ b/tests/harness/Makefile.am
@@ -21,7 +21,13 @@
ta-ta-g1_harness.txt \
chr-us-g1_harness.txt \
nl-BE-g1_harness.txt \
- en-us-g2-end-emphasis_harness.txt
+ en-us-g2-end-emphasis_harness.txt \
+ cz-8dots_harness.txt \
+ hr-8dots_harness.txt \
+ hr-g1_harness.txt \
+ pl-8dots_harness.txt \
+ sr-g1_harness.txt
+
EXTRA_DIST = $(harness_TESTS) \
runHarness.py
diff --git a/tests/harness/cz-8dots_harness.txt b/tests/harness/cz-8dots_harness.txt
new file mode 100755
index 0000000..a7d358a
--- /dev/null
+++ b/tests/harness/cz-8dots_harness.txt
@@ -0,0 +1,16 @@
+{
+ "tables": [
+ "cz.ctb"
+ ],
+ "tests": [
+ {
+ "data": [
+ {
+ "comment": "Initial alphabet test with pangram",
+ "input": "Nechť již hříšné saxofony ďáblů rozzvučí síň úděsnými tóny waltzu, tanga a quickstepu.",
+ "output": ""
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/harness/hr-8dots_harness.txt b/tests/harness/hr-8dots_harness.txt
new file mode 100755
index 0000000..b8ce3c2
--- /dev/null
+++ b/tests/harness/hr-8dots_harness.txt
@@ -0,0 +1,32 @@
+{
+ "tables": [
+ "unicode.dis",
+ "hr.ctb"
+ ],
+ "tests": [
+ {
+ "data": [
+ {
+ "comment": "numbers testing",
+ "input": "0 1 2 3 4 5 6 7 8 9",
+ "output": "⠬ ⠡ ⠌ ⠩ ⠹ ⠱ ⠫ ⠻ ⠳ ⠪"
+ },
+ {
+ "comment": "small letters",
+ "input": "abcčćdđefghijklmnopqrsštuvwxyzž",
+ "output": "⠁⠃⠉⢡⢩⠙⢹⠑⠋⠛⠓⠊⠚⠅⠇⠍⠝⠕⠏⠟⠗⠎⢱⠞⠥⠧⠺⠭⠽⠵⢮"
+ },
+ {
+ "comment": "capital letters",
+ "input": "ABCČĆDĐEFGHIJKLMNOPQRSŠTUVWXYZŽ",
+ "output": "⡁⡃⡉⡡⡩⡙⡹⡑⡋⡛⡓⡊⡚⡅⡇⡍⡝⡕⡏⡟⡗⡎⡱⡞⡥⡧⡺⡭⡽⡵⡮"
+ },
+ {
+ "comment": "all other simbols",
+ "input": "!\"#$%&/()=?*'+-.,;:_<>~^˘°`´\\|÷פß[]@{}§€",
+ "output": "⠐⠶⠼⠮⠨⠯⠲⠣⠜⠿⠢⠔⠠⠖⠤⠄⠂⠆⠒⡸⠦⠴⠰⡰⡨⣐⢈⢘⠘⣒⢭⢨⣮⡷⡾⡈⠷⠾⣔⣳"
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/harness/hr-g1_harness.txt b/tests/harness/hr-g1_harness.txt
new file mode 100755
index 0000000..9c074ea
--- /dev/null
+++ b/tests/harness/hr-g1_harness.txt
@@ -0,0 +1,51 @@
+{
+ "tables": [
+ "unicode.dis",
+ "hr-g1.ctb"
+ ],
+ "tests": [
+ {
+ "data": [
+ {
+ "comment": "tested buggy behavior",
+ "input": "WILDCARD",
+ "output": "⠘⠺⠊⠇⠙⠉⠁⠗⠙"
+ },
+ {
+ "comment": "same thing again",
+ "input": "-",
+ "output": "⠤"
+ },
+ {
+ "comment": "common punctuation test",
+ "input": "!\"#$%&/()=?*\\|÷×[]¤@{}§<>€+'",
+ "output": "⠖⠶⠼⠲⠼⠚⠴⠈⠯⠌⠶⠶⠶⠢⠤⠡⠈⠇⠳⠘⠒⠶⠄⠠⠶⠶⠧⠶⠜⠶⠆⠰⠶⠬⠐⠪⠕⠂⠢⠖⠄"
+ },
+ {
+ "comment": "alphabet test (including diacritics) latin script only",
+ "input": "qwertzuiopšđasdfghjklčćžyxcvbnm",
+ "output": "⠟⠺⠑⠗⠞⠵⠥⠊⠕⠏⠱⠹⠁⠎⠙⠋⠛⠓⠚⠅⠇⠡⠩⠮⠽⠭⠉⠧⠀⠃⠝⠍"
+ },
+ {
+ "comment": "special syllables /digraphs",
+ "input": "dž, lj, nj,)",
+ "output": "⠻, ⠣, ⠫,"
+ },
+ {
+ "comment": "letters and numbers",
+ "input": "abc123",
+ "output": "⠁⠃⠉⠼⠁⠃⠉"
+ },
+ {
+ "comment": "numbers and letters",
+ "input": "123abc",
+ "output": "⠼⠁⠃⠉⠠⠁⠃⠉"
+ },
+ {
+ "input": "љњертзуиопшђасдфгхјклчћжџцвбнм",
+ "output": "⠣⠫⠑⠗⠞⠵⠥⠊⠕⠏⠱⠹⠁⠎⠙⠋⠛⠓⠚⠅⠇⠡⠩⠮⠻⠉⠧⠃⠝⠍"
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/harness/pl-8dots_harness.txt b/tests/harness/pl-8dots_harness.txt
new file mode 100755
index 0000000..9823d6b
--- /dev/null
+++ b/tests/harness/pl-8dots_harness.txt
@@ -0,0 +1,22 @@
+{
+ "tables": [
+ "unicode.dis",
+ "pl.ctb"
+ ],
+ "tests": [
+ {
+ "data": [
+ {
+ "comment": "initial test with a pangram",
+ "input": "Mężny bądź, chroń pułk twój i sześć flag.",
+ "output": "⡍⠱⠯⠝⠽⠃⠡⠙⠮⠂ ⠉⠓⠗⠕⠹ ⠏⠥⠣⠅ ⠞⠺⠬⠚ ⠊ ⠎⠵⠑⠪⠩ ⠋⠇⠁⠛"
+ },
+ {
+ "comment": "other signs",
+ "input": "!@#$%^&*()_+/.,<>?-=;'\\[]{}|:\"",
+ "output": ""
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/harness/sr-g1_harness.txt b/tests/harness/sr-g1_harness.txt
new file mode 100755
index 0000000..26e32d7
--- /dev/null
+++ b/tests/harness/sr-g1_harness.txt
@@ -0,0 +1,57 @@
+{
+ "tables": [
+ "unicode.dis",
+ "sr-g1.ctb"
+ ],
+ "tests": [
+ {
+ "data": [
+ {
+ "comment": "tested buggy behavior",
+ "input": "WILDCARD",
+ "output": "⠘⠺⠊⠇⠙⠉⠁⠗⠙"
+ },
+ {
+ "comment": "same thing again",
+ "input": "-",
+ "output": "⠤"
+ },
+ {
+ "comment": "common punctuation test",
+ "input": "!\"#$%&/()=?*\\|÷×[]¤@{}§<>€+'",
+ "output": "⠖⠶⠼⠲⠼⠚⠴⠈⠯⠌⠶⠶⠶⠢⠤⠡⠈⠇⠳⠘⠒⠶⠄⠠⠶⠶⠧⠶⠜⠶⠆⠰⠶⠬⠐⠪⠕⠂⠢⠖⠄"
+ },
+ {
+ "comment": "alphabet test (including diacritics) latin script only",
+ "input": "qwertzuiopšđasdfghjklčćžyxcvbnm",
+ "output": "⠟⠺⠑⠗⠞⠵⠥⠊⠕⠏⠱⠹⠁⠎⠙⠋⠛⠓⠚⠅⠇⠡⠩⠮⠽⠭⠉⠧⠀⠃⠝⠍"
+ },
+ {
+ "comment": "special syllables /digraphs",
+ "input": "dž, lj, nj,)",
+ "output": "⠻, ⠣, ⠫,"
+ },
+ {
+ "comment": "letters and numbers",
+ "input": "abc123",
+ "output": "⠁⠃⠉⠼⠁⠃⠉"
+ },
+ {
+ "comment": "numbers and letters",
+ "input": "123abc",
+ "output": "⠼⠁⠃⠉⠁⠃⠉"
+ },
+ {
+ "comment": "cyrillic letters, assuming that cyrillic script works tested on a braille display",
+ "input": "љњертзуиопшђасдфгхјклчћжџцвбнм",
+ "output": "⠣⠫⠑⠗⠞⠵⠥⠊⠕⠏⠱⠹⠁⠎⠙⠋⠛⠓⠚⠅⠇⠡⠩⠮⠻⠉⠧⠃⠝⠍"
+ },
+ {
+ "comment": "fixed buggy behavior of the letter u",
+ "input": "u",
+ "output": "⠥"
+ }
+ ]
+ }
+ ]
+}