From: Maria Matejka Date: Sun, 22 Jan 2023 11:55:31 +0000 (+0100) Subject: Added test case for switch bug fixed in e20bef69ccc4a85ef62359ee539c9db2dbe09127 X-Git-Tag: v2.0.12~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3186ffe79714a48542d5ad61a94c81216b522fd0;p=thirdparty%2Fbird.git Added test case for switch bug fixed in e20bef69ccc4a85ef62359ee539c9db2dbe09127 --- diff --git a/filter/test.conf b/filter/test.conf index 930169c5d..1d291c695 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");