From dab3b1d51ea9f7f314a37aecb643dc4b7e52fe98 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 24 Apr 2018 14:13:29 -0400 Subject: tests to folder --- tests/test8 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/test8 (limited to 'tests/test8') 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) -- cgit v1.2.3