summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/if-regex-bad-attribute
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/keywords/if-regex-bad-attribute')
-rw-r--r--src/tests/keywords/if-regex-bad-attribute21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/keywords/if-regex-bad-attribute b/src/tests/keywords/if-regex-bad-attribute
new file mode 100644
index 0000000..f330fde
--- /dev/null
+++ b/src/tests/keywords/if-regex-bad-attribute
@@ -0,0 +1,21 @@
+#
+# PRE: if-regex-match if-regex-error
+#
+
+#
+# This should parse
+#
+if (&User-Name =~ /%{User-Name}/) {
+ update reply {
+ Filter-Id := "filter"
+ }
+}
+
+#
+# Check regexes which refer to unknown attributes
+#
+if (&User-Name =~ /%{What-The-Heck-Is-This-Thing}/) { # ERROR
+ update reply {
+ Filter-Id := "filter"
+ }
+}