From 1895e81e0532f732f501036402bbdd1825885cfd Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 1 Jun 2000 08:32:49 +0000 Subject: Allow matching on enums: if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then { print "Failed in test"; quitbird; } --- filter/test.conf2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filter/test.conf2') diff --git a/filter/test.conf2 b/filter/test.conf2 index 055e49a..60bdd96 100644 --- a/filter/test.conf2 +++ b/filter/test.conf2 @@ -36,6 +36,10 @@ protocol static { print scope; scope = SCOPE_HOST; print scope; + if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then { + print "Failed in test"; + quitbird; + } preference = 15; print preference; -- cgit v1.2.3