diff options
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" |
