diff options
Diffstat (limited to 'js/scripting-lang/tests/18_each_combinator_basic.txt')
-rw-r--r-- | js/scripting-lang/tests/18_each_combinator_basic.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/scripting-lang/tests/18_each_combinator_basic.txt b/js/scripting-lang/tests/18_each_combinator_basic.txt index 95e9803..d926013 100644 --- a/js/scripting-lang/tests/18_each_combinator_basic.txt +++ b/js/scripting-lang/tests/18_each_combinator_basic.txt @@ -23,6 +23,8 @@ each_sum : each @add table1 table2; /* each with empty table */ empty_table : {}; empty_result : each @add empty_table 10; -..assert empty_result = {}; +/* 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 |