aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-17 12:49:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-17 12:49:28 -0400
commit341087026c8998650d741ed8ea0f3f510198810a (patch)
tree4f19ddc9e75f49ef39bd2533964b43f879e3b148 /test
parent46decc9232a59395c2da0109bcbae23015bf3d80 (diff)
More array tests
Diffstat (limited to 'test')
-rw-r--r--test/arrays.tm20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/arrays.tm b/test/arrays.tm
index 78f3d433..3e3cc871 100644
--- a/test/arrays.tm
+++ b/test/arrays.tm
@@ -50,11 +50,15 @@ if yes
if yes
>> [10*i for i in 5]
= [10, 20, 30, 40, 50]
-// if yes
-// >> arr := @[10, 20]
-// >> copy := arr[]
-// >> arr:insert(30)
-// >> arr
-// = @[10, 20, 30]
-// >> copy
-// = [10, 20]
+
+>> [i*10 for i in 5]
+= [10, 20, 30, 40, 50]
+
+if yes
+ >> arr := @[10, 20]
+ >> copy := arr[]
+ >> arr:insert(30)
+ >> arr
+ = @[10, 20, 30]
+ >> copy
+ = [10, 20]