about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_when_pattern_matching.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_when_pattern_matching.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_when_pattern_matching.txt25
1 files changed, 0 insertions, 25 deletions
diff --git a/js/scripting-lang/scratch_tests/test_when_pattern_matching.txt b/js/scripting-lang/scratch_tests/test_when_pattern_matching.txt
deleted file mode 100644
index a9efad0..0000000
--- a/js/scripting-lang/scratch_tests/test_when_pattern_matching.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Test when expression pattern matching with tables */
-
-/* Test 1: Simple table pattern matching */
-test_value : { status: "placeholder", message: "test" };
-
-result1 : when test_value is
-    { status: "placeholder" } then "Pattern 1 matched"
-    { status: "active" } then "Pattern 2 matched"
-    _ then "No pattern matched";
-
-..out "Result 1:";
-..out result1;
-
-/* Test 2: ..listen pattern matching */
-state : ..listen;
-..out "State:";
-..out state;
-
-result2 : when state is
-    { status: "placeholder" } then "Placeholder pattern matched"
-    { status: "active" } then "Active pattern matched"
-    _ then "No pattern matched";
-
-..out "Result 2:";
-..out result2; 
\ No newline at end of file