aboutsummaryrefslogtreecommitdiffstats
path: root/test-files
diff options
context:
space:
mode:
Diffstat (limited to 'test-files')
-rw-r--r--test-files/mds-kbdc/simplify-tree/invalid/map_to_nothing14
-rw-r--r--test-files/mds-kbdc/simplify-tree/invalid/map_to_unorderd_and_alternative9
-rw-r--r--test-files/mds-kbdc/simplify-tree/valid/2-to-2-mapping13
-rw-r--r--test-files/mds-kbdc/simplify-tree/valid/simple_mapping11
-rw-r--r--test-files/mds-kbdc/simplify-tree/valid/value9
5 files changed, 56 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/simplify-tree/invalid/map_to_nothing b/test-files/mds-kbdc/simplify-tree/invalid/map_to_nothing
new file mode 100644
index 0000000..3adedec
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/invalid/map_to_nothing
@@ -0,0 +1,14 @@
+<tab> : .
+
+# (map (@ 1 0-0)
+# (.sequence
+# (keys (@ 1 0-5) ‘<tab>’)
+# )
+# (.result
+# (nothing (@ 1 8-9))
+# )
+# )
+# :1:8–9: error: not allowed in mapping output
+# <tab> : .
+# ^
+
diff --git a/test-files/mds-kbdc/simplify-tree/invalid/map_to_unorderd_and_alternative b/test-files/mds-kbdc/simplify-tree/invalid/map_to_unorderd_and_alternative
new file mode 100644
index 0000000..283d6c3
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/invalid/map_to_unorderd_and_alternative
@@ -0,0 +1,9 @@
+<my_key> : [1 2] (3 4)
+
+# :1:11–12: error: not allowed in mapping output
+# <my_key> : [1 2] (3 4)
+# ^
+# :1:17–18: error: not allowed in mapping output
+# <my_key> : [1 2] (3 4)
+# ^
+
diff --git a/test-files/mds-kbdc/simplify-tree/valid/2-to-2-mapping b/test-files/mds-kbdc/simplify-tree/valid/2-to-2-mapping
new file mode 100644
index 0000000..6d76d7e
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/valid/2-to-2-mapping
@@ -0,0 +1,13 @@
+<dead compose> <tab> : " " " "
+
+# (map (@ 1 0-0)
+# (.sequence
+# (keys (@ 1 0-14) ‘<dead compose>’)
+# (keys (@ 1 15-20) ‘<tab>’)
+# )
+# (.result
+# (string (@ 1 23-29) ‘" "’)
+# (string (@ 1 30-36) ‘" "’)
+# )
+# )
+
diff --git a/test-files/mds-kbdc/simplify-tree/valid/simple_mapping b/test-files/mds-kbdc/simplify-tree/valid/simple_mapping
new file mode 100644
index 0000000..1af9a42
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/valid/simple_mapping
@@ -0,0 +1,11 @@
+<keycode 1> : <escape>
+
+# (map (@ 1 0-0)
+# (.sequence
+# (keys (@ 1 0-11) ‘<keycode 1>’)
+# )
+# (.result
+# (keys (@ 1 14-22) ‘<escape>’)
+# )
+# )
+
diff --git a/test-files/mds-kbdc/simplify-tree/valid/value b/test-files/mds-kbdc/simplify-tree/valid/value
new file mode 100644
index 0000000..f656b16
--- /dev/null
+++ b/test-files/mds-kbdc/simplify-tree/valid/value
@@ -0,0 +1,9 @@
+"value statement"
+
+# (map (@ 1 0-0)
+# (.sequence
+# (string (@ 1 0-17) ‘"value statement"’)
+# )
+# (.result nil)
+# )
+