diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_abs.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_abs.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_abs.txt b/js/scripting-lang/scratch_tests/test_abs.txt new file mode 100644 index 0000000..c83d644 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_abs.txt @@ -0,0 +1,10 @@ +/* Test abs function */ +abs : x -> when x is + x < 0 then -x + _ then x; + +result1 : abs -5; +result2 : abs 5; + +..out result1; +..out result2; \ No newline at end of file |