summaryrefslogtreecommitdiff
path: root/filter/test.conf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2016-06-08 16:22:44 +0200
committerOndrej Filip <feela@network.cz>2016-06-08 16:22:44 +0200
commita0fe1944d12771d60986a352552e5f4b306e5f7f (patch)
tree48383090906b9011fa85f2a93ce670afe43cd9c5 /filter/test.conf
parent90dc0f08434323535f84d64e113dae84675c46b2 (diff)
Add AS# ranges to bgpmask.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf9
1 files changed, 6 insertions, 3 deletions
diff --git a/filter/test.conf b/filter/test.conf
index a99d0a51..ad8f9386 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -90,20 +90,23 @@ clist l2;
eclist el;
eclist el2;
{
+ print "Entering path test...";
pm1 = / 4 3 2 1 /;
- pm2 = [= 4 3 2 1 =];
+ pm2 = [= 3..6 3 2 1..2 =];
print "Testing path masks: ", pm1, " ", pm2;
p2 = prepend( + empty +, 1 );
p2 = prepend( p2, 2 );
p2 = prepend( p2, 3 );
p2 = prepend( p2, 4 );
- print "Testing paths: ", p2;
+ print "Testing path: (4 3 2 1) = ", p2;
print "Should be true: ", p2 ~ pm1, " ", p2 ~ pm2, " ", 3 ~ p2, " ", p2 ~ [2, 10..20], " ", p2 ~ [4, 10..20];
print "4 = ", p2.len;
p2 = prepend( p2, 5 );
- print "Should be false: ", p2 ~ pm1, " ", p2 ~ pm2, " ", 10 ~ p2, " ", p2 ~ [8, ten..(2*ten)];
+ print "Testing path: (5 4 3 2 1) = ", p2;
+ print "Should be false: ", p2 ~ pm1, " ", p2 ~ pm2, " ", 10 ~ p2, " ", p2 ~ [8, ten..(2*ten)], " ", p2 ~ [= 1..4 4 3 2 1 =], " ", p2 ~ [= 5 4 4..100 2 1 =];
print "Should be true: ", p2 ~ / ? 4 3 2 1 /, " ", p2, " ", / ? 4 3 2 1 /;
print "Should be true: ", p2 ~ [= * 4 3 * 1 =], " ", p2, " ", [= * 4 3 * 1 =];
+ print "Should be true: ", p2 ~ [= 5..6 4..10 1..3 1..3 1..65536 =];
print "Should be true: ", p2 ~ [= (3+2) (2*2) 3 2 1 =], " ", p2 ~ mkpath(5, 4);
print "Should be true: ", p2.len = 5, " ", p2.first = 5, " ", p2.last = 1;
print "5 = ", p2.len;