summaryrefslogtreecommitdiffstats
path: root/pigeonhole/tests/compile/errors/comparator.sieve
diff options
context:
space:
mode:
Diffstat (limited to 'pigeonhole/tests/compile/errors/comparator.sieve')
-rw-r--r--pigeonhole/tests/compile/errors/comparator.sieve21
1 files changed, 21 insertions, 0 deletions
diff --git a/pigeonhole/tests/compile/errors/comparator.sieve b/pigeonhole/tests/compile/errors/comparator.sieve
new file mode 100644
index 0000000..368b56b
--- /dev/null
+++ b/pigeonhole/tests/compile/errors/comparator.sieve
@@ -0,0 +1,21 @@
+/*
+ * Address part errors
+ *
+ * Total errors: 5 (+1 = 6)
+ */
+
+# 1: No argument
+if address :comparator { }
+
+# 2: Number argument
+if address :comparator 1 "from" "frop" { }
+
+# 3: String list argument
+if address :comparator ["a", "b"] "from" "frop" { }
+
+# 4: Unknown tag
+if address :comparator :frop "from" "frop" { }
+
+# 5: Known tag
+if address :comparator :all "from" "frop" { }
+