diff options
Diffstat (limited to 'js/scripting-lang/baba-yaga-c/tests/18_each_combinator_basic.txt')
-rw-r--r-- | js/scripting-lang/baba-yaga-c/tests/18_each_combinator_basic.txt | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/js/scripting-lang/baba-yaga-c/tests/18_each_combinator_basic.txt b/js/scripting-lang/baba-yaga-c/tests/18_each_combinator_basic.txt deleted file mode 100644 index d926013..0000000 --- a/js/scripting-lang/baba-yaga-c/tests/18_each_combinator_basic.txt +++ /dev/null @@ -1,30 +0,0 @@ -/* Basic Unit Test: Each Combinator */ - -/* Test data */ -numbers : {1, 2, 3, 4, 5}; -table1 : {a: 1, b: 2, c: 3}; -table2 : {a: 10, b: 20, c: 30}; - -/* each with table and scalar */ -each_add : each @add numbers 10; -each_1 : each_add[1]; -each_2 : each_add[2]; -each_3 : each_add[3]; -..assert each_1 = 11; -..assert each_2 = 12; -..assert each_3 = 13; - -/* each with two tables */ -each_sum : each @add table1 table2; -..assert each_sum.a = 11; -..assert each_sum.b = 22; -..assert each_sum.c = 33; - -/* each with empty table */ -empty_table : {}; -empty_result : each @add empty_table 10; -/* Check that empty_result is an empty object by checking its length */ -empty_length : t.length empty_result; -..assert empty_length = 0; - -..out "Basic each combinator test completed successfully"; \ No newline at end of file |