diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:06:39 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:06:39 -0400 |
| commit | c0d0299b0f72b43c1f125c2e5319e4dce3e4c171 (patch) | |
| tree | 6682afdac4af8ceb1b71764724b16b9e7d465264 | |
| parent | 0892ceda93fdc8f29baae3549b555d9519bfe523 (diff) | |
Fix tests
| -rw-r--r-- | test/enums.tm | 2 | ||||
| -rw-r--r-- | test/optionals.tm | 2 | ||||
| -rw-r--r-- | test/structs.tm | 4 | ||||
| -rw-r--r-- | test/tables.tm | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/test/enums.tm b/test/enums.tm index f12b3d79..fe767ebf 100644 --- a/test/enums.tm +++ b/test/enums.tm @@ -46,7 +46,7 @@ func main() assert Foo.One(10) < Foo.Two(1, 2) >> x := Foo.One(123) - >> t := {x=yes} + >> t := {x: yes} assert t.has(x) == yes assert t.has(Foo.Zero) == no diff --git a/test/optionals.tm b/test/optionals.tm index 4528ee6c..51a78380 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -223,7 +223,7 @@ func main() # Test comparisons, hashing, equality: assert none != optional assert optional == 5 - >> nones : {Int?=Bool} = {none=yes, none=yes} + >> nones : {Int?:Bool} = {none: yes, none: yes} assert nones.keys == [none] assert [5, none, none, 6].sorted() == [none, none, 5, 6] diff --git a/test/structs.tm b/test/structs.tm index 05349068..1768cf71 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -25,7 +25,7 @@ func test_metamethods() assert x != Pair(10, 30) assert x < Pair(11, 20) - >> set := {x=yes} + >> set := {x: yes} assert set.has(x) == yes assert set.has(y) == no @@ -36,7 +36,7 @@ func test_mixed() assert x == Mixed(10, "Hello") assert x != Mixed(10, "Bye") assert x < Mixed(11, "Hello") - >> set := {x=yes} + >> set := {x: yes} assert set.has(x) == yes assert set.has(y) == no diff --git a/test/tables.tm b/test/tables.tm index 85ca9101..7b1ac22c 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -65,7 +65,7 @@ func main() assert {1: 1, 2: 2} != {1: 1, 2: 999} assert ({1: 1, 2: 2} <> {2: 2, 1: 1}) == Int32(0) - ints : [{Int=Int}] = [{}, {0: 0}, {99: 99}, {1: 1, 2: 2, 3: 3}, {1: 1, 99: 99, 3: 3}, {1: 1, 2: -99, 3: 3}, {1: 1, 99: -99, 3: 4}] + ints : [{Int:Int}] = [{}, {0: 0}, {99: 99}, {1: 1, 2: 2, 3: 3}, {1: 1, 99: 99, 3: 3}, {1: 1, 2: -99, 3: 3}, {1: 1, 99: -99, 3: 4}] assert ints.sorted() == [{}, {0: 0}, {1: 1, 2: -99, 3: 3}, {1: 1, 2: 2, 3: 3}, {1: 1, 99: 99, 3: 3}, {1: 1, 99: -99, 3: 4}, {99: 99}] do |
