aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test8
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-04-24 14:13:29 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-04-24 14:13:29 -0400
commitdab3b1d51ea9f7f314a37aecb643dc4b7e52fe98 (patch)
tree6a0eaefcaa8ec0027aa23068595c93071d5e7af0 /tests/test8
parentb761569b3aabfb9cd2034d737d4223de534d3dcb (diff)
tests to folder
Diffstat (limited to 'tests/test8')
-rw-r--r--tests/test823
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test8 b/tests/test8
new file mode 100644
index 0000000..36e5b9c
--- /dev/null
+++ b/tests/test8
@@ -0,0 +1,23 @@
+array(a, 10)
+
+i = 0
+while (i < 10) {
+ a.i = i * 2
+ i = i + 1
+}
+
+i = 0
+while (i < 10) {
+ print(a.i)
+ i = i + 1
+}
+
+a.20 = 143
+print(a.20)
+print(a.19)
+
+print("Strings:")
+str = "Hello!"
+print(str.0)
+print(str.2)
+print(str.4)