write arrays with brackets in tests

The tests spelled out (¤ ...), what [...] reads into, which nobody
writes. The reader's own tests keep it: there it is the point.
This commit is contained in:
2026-10-09 16:32:36 +03:00
parent f3d9c95daf
commit 7532c72dec
8 changed files with 55 additions and 55 deletions

View File

@@ -38,7 +38,7 @@
;; an array literal decays the way an array does
(var a (* int) #([int 3] : 10 20 30))
(printf "array %d %d %d\n" (¤ a 0) (¤ a 1) (¤ a 2))
(printf "array %d %d %d\n" [a 0] [a 1] [a 2])
(printf "argument %d\n" (sum #(struct point : 2 4)))