diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-13 13:39:44 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-13 13:39:44 -0400 |
| commit | 63e6ba596ae8e35727289a69b11d5640bfc5e49e (patch) | |
| tree | 2a6e3022103f42898da7c02640e2dab817b36b88 /test/structs.tm | |
| parent | cc0763713495a2b5b154d318772fc7f745e96635 (diff) | |
Change table syntax to {key:value} instead of {key=>value}
Diffstat (limited to 'test/structs.tm')
| -rw-r--r-- | test/structs.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/structs.tm b/test/structs.tm index 1d9de8d0..9fe2f6a7 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -26,7 +26,7 @@ func test_metamethods() >> x < Pair(11, 20) = yes - >> t2 := {x=> "found"; default="missing"} + >> t2 := {x:"found"; default="missing"} >> t2[x] = "found" >> t2[y] @@ -43,7 +43,7 @@ func test_mixed() = no >> x < Mixed(11, "Hello") = yes - >> t := {x=> "found"; default="missing"} + >> t := {x:"found"; default="missing"} >> t[x] = "found" >> t[y] @@ -58,8 +58,8 @@ func main() >> my_pass := Password("Swordfish") = Password(...) - >> users_by_password := {my_pass=> "User1", Password("xxx")=>"User2"} - = {Password(...)=>"User1", Password(...)=>"User2"} + >> users_by_password := {my_pass:"User1", Password("xxx"):"User2"} + = {Password(...):"User1", Password(...):"User2"} >> users_by_password[my_pass] = "User1" |
