diff options
Diffstat (limited to 'js/scripting-lang/baba-yaga-c/test_table_pattern_debug.txt')
-rw-r--r-- | js/scripting-lang/baba-yaga-c/test_table_pattern_debug.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/scripting-lang/baba-yaga-c/test_table_pattern_debug.txt b/js/scripting-lang/baba-yaga-c/test_table_pattern_debug.txt new file mode 100644 index 0000000..87f57f3 --- /dev/null +++ b/js/scripting-lang/baba-yaga-c/test_table_pattern_debug.txt @@ -0,0 +1,21 @@ +/* Debug test for table pattern matching */ + +/* Test 1: Basic table creation with key-value pairs */ +test_table : { status: "placeholder" }; +..out "Test table created"; + +/* Test 2: Check table contents */ +..out test_table.status; + +/* Test 3: Test ..listen function */ +state : ..listen; +..out "Listen state created"; +..out state.status; +..out state.message; + +/* Test 4: Test table pattern matching */ +result : when state is + { status: "placeholder" } then "Placeholder detected" + _ then "Unknown state"; + +..out result; \ No newline at end of file |