aboutsummaryrefslogtreecommitdiff
path: root/test/structs.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 14:20:18 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 14:20:18 -0400
commit2bb2ff871fa1761478442bec5f6a32c9428360a1 (patch)
tree9b73df7a0c50c02353ae7bca7c2cd54788ef0077 /test/structs.tm
parent59845e610f2c90474f34079d27b5f1e07071ded4 (diff)
Change method calls to use `foo.baz()` instead of `foo:baz()`
Diffstat (limited to 'test/structs.tm')
-rw-r--r--test/structs.tm8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/structs.tm b/test/structs.tm
index c1d2f7b0..cf7b6a1c 100644
--- a/test/structs.tm
+++ b/test/structs.tm
@@ -33,9 +33,9 @@ func test_metamethods():
>> x < Pair(11, 20)
= yes
>> set := {x}
- >> set:has(x)
+ >> set.has(x)
= yes
- >> set:has(y)
+ >> set.has(y)
= no
func test_mixed():
@@ -50,9 +50,9 @@ func test_mixed():
>> x < Mixed(11, "Hello")
= yes
>> set := {x}
- >> set:has(x)
+ >> set.has(x)
= yes
- >> set:has(y)
+ >> set.has(y)
= no
func test_text():