about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_equals_function.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_equals_function.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_equals_function.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_equals_function.txt b/js/scripting-lang/scratch_tests/test_equals_function.txt
new file mode 100644
index 0000000..91e90fd
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_equals_function.txt
@@ -0,0 +1,17 @@
+/* Test equals function */
+
+/* Test basic equals */
+test1 : equals 5 5;
+test2 : equals 5 3;
+test3 : equals 0 0;
+
+..out test1;
+..out test2;
+..out test3;
+
+/* Test equals with modulo */
+test4 : equals (15 % 3) 0;
+test5 : equals (15 % 5) 0;
+
+..out test4;
+..out test5; 
\ No newline at end of file