summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/switch
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/keywords/switch')
-rw-r--r--src/tests/keywords/switch19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/keywords/switch b/src/tests/keywords/switch
new file mode 100644
index 0000000..f64aeaf
--- /dev/null
+++ b/src/tests/keywords/switch
@@ -0,0 +1,19 @@
+switch &User-Name {
+ case "bob" {
+ update reply {
+ Filter-Id := "filter"
+ }
+ }
+
+ case "doug" {
+ update reply {
+ Filter-Id := "doug"
+ }
+ }
+
+ case {
+ update reply {
+ Filter-Id := "default"
+ }
+ }
+}