From 417b8959edb419a2f13140634b5af29a22793723 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Sun, 12 May 2024 10:56:21 -0600 Subject: [PATCH] More tests for switch --- src/tests/keywords/switch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/tests/keywords/switch b/src/tests/keywords/switch index 28009f4c26..b95853fff0 100644 --- a/src/tests/keywords/switch +++ b/src/tests/keywords/switch @@ -5,9 +5,27 @@ switch &User-Name { case "doug" { &Filter-Id := "doug" + test_fail } default { &Filter-Id := "default" + test_fail + } +} + +switch "%{User-Name}" { + case 'bob' { + success + } + + case 'doug' { + &Filter-Id := "doug" + test_fail + } + + default { + &Filter-Id := "default" + test_fail } } -- 2.47.3