Missing boolean comparison added.
This commit is contained in:
parent
4c2507da68
commit
a6c9f0648d
2 changed files with 6 additions and 2 deletions
|
@ -120,7 +120,8 @@ val_compare(struct f_val v1, struct f_val v2)
|
|||
}
|
||||
switch (v1.type) {
|
||||
case T_ENUM:
|
||||
case T_INT:
|
||||
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;
|
||||
|
|
|
@ -155,6 +155,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: ";
|
||||
|
@ -202,4 +205,4 @@ int j;
|
|||
accept "ok I take that";
|
||||
}
|
||||
|
||||
eval __startup();
|
||||
eval __startup();
|
||||
|
|
Loading…
Reference in a new issue