diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_nested_functions.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_nested_functions.txt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/js/scripting-lang/scratch_tests/test_nested_functions.txt b/js/scripting-lang/scratch_tests/test_nested_functions.txt deleted file mode 100644 index 539491b..0000000 --- a/js/scripting-lang/scratch_tests/test_nested_functions.txt +++ /dev/null @@ -1,28 +0,0 @@ -/* Test nested table functions */ - -// Test nested tables with functions -nested : { - math: { - add: x y -> x + y, - subtract: x y -> x - y - }, - logic: { - logical_and: x y -> x and y, - logical_or: x y -> x or y - } -}; - -// Output tests -..out "=== NESTED FUNCTIONS TEST ==="; - -..out "Nested math functions:"; -nested_add : nested.math.add 100 200; -..out nested_add; -nested_sub : nested.math.subtract 50 30; -..out nested_sub; - -..out "Nested logic functions:"; -logic_and : nested.logic.logical_and true false; -..out logic_and; -logic_or : nested.logic.logical_or true false; -..out logic_or; \ No newline at end of file |