aboutsummaryrefslogtreecommitdiff
path: root/test/structs.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 15:43:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 15:43:59 -0400
commit71f73d8b3ce63f9a3685bc1a1686ef4fab3294a6 (patch)
tree99fe1309fa4d24609867dcc62859caed909a76d9 /test/structs.tm
parentf5612e38183dc20d18f207f8ab055574a4d93ad0 (diff)
Deprecate sets
Diffstat (limited to 'test/structs.tm')
-rw-r--r--test/structs.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/structs.tm b/test/structs.tm
index 40c1b566..2440911b 100644
--- a/test/structs.tm
+++ b/test/structs.tm
@@ -27,7 +27,7 @@ func test_metamethods()
assert x != Pair(10, 30)
assert x < Pair(11, 20)
- >> set := |x|
+ >> set := {x=yes}
>> set.has(x)
= yes
>> set.has(y)
@@ -41,7 +41,7 @@ func test_mixed()
assert x == Mixed(10, "Hello")
assert x != Mixed(10, "Bye")
assert x < Mixed(11, "Hello")
- >> set := |x|
+ >> set := {x=yes}
>> set.has(x)
= yes
>> set.has(y)