summaryrefslogtreecommitdiff
path: root/filter/test.conf
diff options
context:
space:
mode:
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf25
1 files changed, 24 insertions, 1 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 600c551e..e9e3af89 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -39,6 +39,18 @@ bt_test_same(onef, oneg, 1);
bt_test_same(onef, twof, 0);
/*
+ * Testing filter corner cases
+ * ---------------------------
+ */
+
+function t_nothing() {}
+bt_test_suite(t_nothing, "Testing nothing");
+
+function t_metanothing() { t_nothing(); }
+bt_test_suite(t_metanothing, "Testing meta nothing");
+
+
+/*
* Testing boolean expressions
* ---------------------------
*/
@@ -76,6 +88,14 @@ bt_test_suite(t_bool, "Testing boolean expressions");
* ----------------
*/
+function aux_t_int(int t; int u)
+{
+ case t {
+ 1: {}
+ else: {}
+ }
+}
+
define four = 4;
define xyzzy = (120+10);
define '1a-a1' = (xyzzy-100);
@@ -120,7 +140,10 @@ function t_int()
else: bt_assert(false);
}
-
+ aux_t_int(1, 2);
+ aux_t_int(1, 3);
+ aux_t_int(2, 3);
+ aux_t_int(2, 2);
}
bt_test_suite(t_int, "Testing integers");