From 3186ffe79714a48542d5ad61a94c81216b522fd0 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 22 Jan 2023 12:55:31 +0100 Subject: Added test case for switch bug fixed in e20bef69ccc4a85ef62359ee539c9db2dbe09127 --- filter/test.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'filter') 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"); -- cgit v1.2.3