summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-07-23 21:21:03 +0300
committerRan Benita <ran234@gmail.com>2012-07-26 23:15:54 +0300
commitc6279b8baeae7dd9ff486bc0fb60ff0bef0587af (patch)
treeba533587799c1b992f6617c87b25dbbfee54b0fd /test/data
parent7662397fd41a1581f71836e7c7361100d3fb0d56 (diff)
expr: don't divide by zero
Calculator parser 101. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'test/data')
-rw-r--r--test/data/keymaps/divide-by-zero.xkb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/data/keymaps/divide-by-zero.xkb b/test/data/keymaps/divide-by-zero.xkb
new file mode 100644
index 0000000..5ae7d44
--- /dev/null
+++ b/test/data/keymaps/divide-by-zero.xkb
@@ -0,0 +1,17 @@
+xkb_keymap {
+ xkb_keycodes {
+ <ESC> = 1 / 0;
+ };
+
+ xkb_types {
+ virtual_modifiers NumLock;
+ };
+
+ xkb_compatibility {
+ virtual_modifiers NumLock;
+ };
+
+ xkb_symbols {
+ key <HYPR> { [ NoSymbol, Hyper_L ] };
+ };
+};