diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 12:49:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 12:49:28 -0400 |
| commit | 341087026c8998650d741ed8ea0f3f510198810a (patch) | |
| tree | 4f19ddc9e75f49ef39bd2533964b43f879e3b148 | |
| parent | 46decc9232a59395c2da0109bcbae23015bf3d80 (diff) | |
More array tests
| -rw-r--r-- | test/arrays.tm | 20 |
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] |
