diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_complex_validation_only.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_complex_validation_only.txt | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/js/scripting-lang/scratch_tests/test_complex_validation_only.txt b/js/scripting-lang/scratch_tests/test_complex_validation_only.txt deleted file mode 100644 index d4e0a4a..0000000 --- a/js/scripting-lang/scratch_tests/test_complex_validation_only.txt +++ /dev/null @@ -1,14 +0,0 @@ -/* Test just the complex validation part */ - -/* Complex function for testing */ -complex_validation : x y -> (x > 0) and (y > 0) and (x + y > 10); - -/* Using complex function in pattern */ -validate_pair : x y -> - when (complex_validation x y) is - true then "valid pair" - false then "invalid pair"; - -/* Test complex validation */ -valid_pair : validate_pair 5 8; -..out valid_pair; \ No newline at end of file |