]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added test case for switch bug fixed in e20bef69ccc4a85ef62359ee539c9db2dbe09127
authorMaria Matejka <mq@ucw.cz>
Sun, 22 Jan 2023 11:55:31 +0000 (12:55 +0100)
committerMaria Matejka <mq@ucw.cz>
Sun, 22 Jan 2023 11:55:31 +0000 (12:55 +0100)
filter/test.conf

index 930169c5dc7a46c6ee8b1fc6d9a0215065d8d914..1d291c695b2cf073b446e0fc34c9636b6800c115 100644 (file)
@@ -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");