summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-22 12:55:31 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-22 12:55:31 +0100
commit3186ffe79714a48542d5ad61a94c81216b522fd0 (patch)
treee13c10defd8e7741bc277a339f2a30048c03c6c2 /filter
parentaf611f93aa5040acc606ed289a873bf1136831c2 (diff)
Added test case for switch bug fixed in e20bef69ccc4a85ef62359ee539c9db2dbe09127
Diffstat (limited to 'filter')
-rw-r--r--filter/test.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 930169c5..1d291c69 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -109,6 +109,18 @@ function t_int()
bt_assert(!(i = 4));
bt_assert(1 <= 1);
bt_assert(!(1234 < 1234));
+
+ case i {
+ 4200000000: bt_assert(true);
+ else: bt_assert(false);
+ }
+
+ case four {
+ 4: bt_assert(true);
+ else: bt_assert(false);
+ }
+
+
}
bt_test_suite(t_int, "Testing integers");