Filter: Remove old BGP path mask syntax from tests
This commit is contained in:
parent
dea9886454
commit
ed1d853e51
1 changed files with 2 additions and 8 deletions
|
@ -589,14 +589,11 @@ function mkpath(int a; int b)
|
||||||
|
|
||||||
function t_path()
|
function t_path()
|
||||||
bgpmask pm1;
|
bgpmask pm1;
|
||||||
bgpmask pm2;
|
|
||||||
bgppath p2;
|
bgppath p2;
|
||||||
{
|
{
|
||||||
pm1 = / 4 3 2 1 /;
|
pm1 = [= 4 3 2 1 =];
|
||||||
pm2 = [= 4 3 2 1 =];
|
|
||||||
|
|
||||||
bt_assert(pm1 = pm2);
|
bt_assert(format(pm1) = "[= 4 3 2 1 =]");
|
||||||
bt_assert(format(pm2) = "[= 4 3 2 1 =]");
|
|
||||||
|
|
||||||
bt_assert(+empty+ = +empty+);
|
bt_assert(+empty+ = +empty+);
|
||||||
bt_assert(10 !~ +empty+);
|
bt_assert(10 !~ +empty+);
|
||||||
|
@ -609,17 +606,14 @@ bgppath p2;
|
||||||
bt_assert(format(p2) = "(path 4 3 2 1)");
|
bt_assert(format(p2) = "(path 4 3 2 1)");
|
||||||
bt_assert(p2.len = 4);
|
bt_assert(p2.len = 4);
|
||||||
bt_assert(p2 ~ pm1);
|
bt_assert(p2 ~ pm1);
|
||||||
bt_assert(p2 ~ pm2);
|
|
||||||
bt_assert(3 ~ p2);
|
bt_assert(3 ~ p2);
|
||||||
bt_assert(p2 ~ [2, 10..20]);
|
bt_assert(p2 ~ [2, 10..20]);
|
||||||
bt_assert(p2 ~ [4, 10..20]);
|
bt_assert(p2 ~ [4, 10..20]);
|
||||||
|
|
||||||
p2 = prepend(p2, 5);
|
p2 = prepend(p2, 5);
|
||||||
bt_assert(p2 !~ pm1);
|
bt_assert(p2 !~ pm1);
|
||||||
bt_assert(p2 !~ pm2);
|
|
||||||
bt_assert(10 !~ p2);
|
bt_assert(10 !~ p2);
|
||||||
bt_assert(p2 !~ [8, ten..(2*ten)]);
|
bt_assert(p2 !~ [8, ten..(2*ten)]);
|
||||||
bt_assert(p2 ~ / ? 4 3 2 1 /);
|
|
||||||
bt_assert(p2 ~ [= * 4 3 * 1 =]);
|
bt_assert(p2 ~ [= * 4 3 * 1 =]);
|
||||||
bt_assert(p2 ~ [= (3+2) (2*2) 3 2 1 =]);
|
bt_assert(p2 ~ [= (3+2) (2*2) 3 2 1 =]);
|
||||||
bt_assert(p2 ~ mkpath(5, 4));
|
bt_assert(p2 ~ mkpath(5, 4));
|
||||||
|
|
Loading…
Reference in a new issue