about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_backward_compatibility.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_backward_compatibility.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_backward_compatibility.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_backward_compatibility.txt b/js/scripting-lang/scratch_tests/test_backward_compatibility.txt
new file mode 100644
index 0000000..787423f
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_backward_compatibility.txt
@@ -0,0 +1,21 @@
+/* Test backward compatibility */
+
+x : 5;
+f : x -> x * 2;
+g : x -> x + 1;
+
+/* All these should work exactly as before */
+result1 : x + 5;
+..out result1;
+
+result2 : f x;
+..out result2;
+
+result3 : f (g x);
+..out result3;
+
+result4 : -x;
+..out result4;
+
+result5 : not true;
+..out result5; 
\ No newline at end of file