0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Added test case for switch bug fixed in e20bef69cc

This commit is contained in:
Maria Matejka 2023-01-22 12:55:31 +01:00
parent af611f93aa
commit 3186ffe797

View 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");