summaryrefslogtreecommitdiff
path: root/filter/test.conf
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-06-09 00:30:41 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-06-09 00:30:41 +0200
commit122deb6d5b14f46f3cfb25bf3f5726005d6a3b3e (patch)
tree554614345df25a59bb5ed9c740476aa58d64fde7 /filter/test.conf
parenta0fe1944d12771d60986a352552e5f4b306e5f7f (diff)
Filters: Fixes pm_same() w.r.t. ASN ranges and ASN expressions
This is necessary for proper detection of filter changes during reconfigurations.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/test.conf b/filter/test.conf
index ad8f9386..f61f0658 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -109,6 +109,9 @@ eclist el2;
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 "Should be true: ", pm1 = [= 4 3 2 1 =], " ", pm1 != [= 4 3 1 2 =], " ",
+ pm2 = [= 3..6 3 2 1..2 =], " ", pm2 != [= 3..6 3 2 1..3 =], " ",
+ [= 1 2 (1+2) =] = [= 1 2 (1+2) =], " ", [= 1 2 (1+2) =] != [= 1 2 (2+1) =];
print "5 = ", p2.len;
print "Delete 3: ", delete(p2, 3);
print "Filter 1-3: ", filter(p2, [1..3]);