mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Missing boolean comparison added.
This commit is contained in:
parent
4c2507da68
commit
a6c9f0648d
@ -121,6 +121,7 @@ val_compare(struct f_val v1, struct f_val v2)
|
||||
switch (v1.type) {
|
||||
case T_ENUM:
|
||||
case T_INT:
|
||||
case T_BOOL:
|
||||
case T_PAIR:
|
||||
if (v1.val.i == v2.val.i) return 0;
|
||||
if (v1.val.i < v2.val.i) return -1;
|
||||
|
@ -156,6 +156,9 @@ string s;
|
||||
b = true;
|
||||
print "Testing bool: ", b, ", ", !b;
|
||||
|
||||
if ( b = true ) then print "Testing bool comparison b = true: ", b;
|
||||
else { print "*** FAIL: TRUE test failed" ; quitbird; }
|
||||
|
||||
pxs = [ 1.2.0.0/16, 1.4.0.0/16+];
|
||||
print "Testing prefix sets: ";
|
||||
print pxs;
|
||||
|
Loading…
Reference in New Issue
Block a user