mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-14 10:27:03 +00:00
Added test case for switch bug fixed in e20bef69ccc4a85ef62359ee539c9db2dbe09127
This commit is contained in:
parent
f8c5c22817
commit
279e239210
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user