mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
Added test case for switch bug fixed in e20bef69cc
This commit is contained in:
parent
af611f93aa
commit
3186ffe797
@ -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…
Reference in New Issue
Block a user