Added examples of pairs and prefixes
This commit is contained in:
parent
c9f8c1a855
commit
4872cef4df
1 changed files with 8 additions and 2 deletions
|
@ -21,6 +21,8 @@ function callme (int arg1; int arg2;)
|
||||||
|
|
||||||
function startup ()
|
function startup ()
|
||||||
int i;
|
int i;
|
||||||
|
prefix px;
|
||||||
|
|
||||||
{
|
{
|
||||||
print "Bird filter language: selftesting...";
|
print "Bird filter language: selftesting...";
|
||||||
i = 4;
|
i = 4;
|
||||||
|
@ -42,6 +44,10 @@ int i;
|
||||||
print "IPsets: true = " 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ];
|
print "IPsets: true = " 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ];
|
||||||
print " false = " 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ];
|
print " false = " 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ];
|
||||||
|
|
||||||
|
print "Testing prefixes: 1.2.3.4/18 = " 1.2.3.4/18;
|
||||||
|
print "Testing pairs: (1,2) = " (1,2);
|
||||||
|
|
||||||
|
print "Testing functions...";
|
||||||
callme ( 1, 2, );
|
callme ( 1, 2, );
|
||||||
callme ( 2, 2, );
|
callme ( 2, 2, );
|
||||||
callme ( 3, 2, );
|
callme ( 3, 2, );
|
||||||
|
@ -49,7 +55,7 @@ int i;
|
||||||
callme ( 7, 2, );
|
callme ( 7, 2, );
|
||||||
|
|
||||||
print "done";
|
print "done";
|
||||||
# quitbird;
|
quitbird;
|
||||||
# print "*** FAIL: this is unreachable";
|
# print "*** FAIL: this is unreachable";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue