summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-01 10:43:29 +0200
committerPavel Machek <pavel@ucw.cz>2000-06-01 10:43:29 +0200
commit5f4aee76a2e26a6947f47273d510edc524716a45 (patch)
tree9004972bd0c1fd4de12e9cfdfdfee67babb50066 /filter/test.conf
parent1877dab21715eb23addb3391afbd8dbf571f833d (diff)
downloadbird-5f4aee76a2e26a6947f47273d510edc524716a45.tar
bird-5f4aee76a2e26a6947f47273d510edc524716a45.zip
Added && and ||.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 7e67464..c1d5977 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -88,9 +88,10 @@ ip p;
if 1234 < 1234 then { print "*** FAIL: test 4"; quitbird; } else print "ok";
print " must be true: ", 1.2.0.0/16 ~ [ 1.0.0.0/8{ 15 , 17 } ];
print " data types; must be true: ", 1.2.3.4 = 1.2.3.4, ",", 1 ~ [1,2,3], ",", 5 ~ [1..20], ",", 2 ~ [ 1, 2, 3 ], ",", 5 ~ [ 4 .. 7 ], ",", 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ], ",", 1.2.3.4 ~ 1.0.0.0/8, ",", 1.0.0.0/8 ~ 1.0.0.0/8, ",", 1.0.0.0/8 ~ [ 1.0.0.0/8+ ];
+ print " must be true: ", true && true, ",", true || false;
# print " must be true: ", defined(1), ",", defined(1.2.3.4), ",", 1 != 2, ",", 1 <= 2;
- print " data types: must be false: ", 1 ~ [ 2, 3, 4 ], ",", 5 ~ [ 2, 3, 4, 7..11 ], ",", 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ], ",", (1,2) > (2,2), ",", (1,1) > (1,1), ",", 1.0.0.0/8 ~ [ 1.0.0.0/8- ], ",", 1.2.0.0/17 ~ [ 1.0.0.0/8{ 15 , 16 } ];
+ print " data types: must be false: ", 1 ~ [ 2, 3, 4 ], ",", 5 ~ [ 2, 3, 4, 7..11 ], ",", 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ], ",", (1,2) > (2,2), ",", (1,1) > (1,1), ",", 1.0.0.0/8 ~ [ 1.0.0.0/8- ], ",", 1.2.0.0/17 ~ [ 1.0.0.0/8{ 15 , 16 } ], ",", true && false;
px = 1.2.0.0/18;
print "Testing prefixes: 1.2.0.0/18 = ", px;