diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/arrays.tm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/arrays.tm b/test/arrays.tm index c693996e..21c8cb5c 100644 --- a/test/arrays.tm +++ b/test/arrays.tm @@ -76,7 +76,11 @@ func main(): do: >> arr := [10, 20, 30] - >> arr:reversed() + >> reversed := arr:reversed() + = [30, 20, 10] + // Ensure the copy-on-write behavior triggers: + >> arr[1] = 999 + >> reversed = [30, 20, 10] do: |
