aboutsummaryrefslogtreecommitdiff
path: root/test/sets.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-07-12 15:06:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-07-12 15:06:02 -0400
commit789497e2ca25c8189fb2466f34dda054d99453b1 (patch)
tree4c7c6bac0b17d68d6079f9074c01a6a2ec3859c6 /test/sets.tm
parent46b0dbc5a448249ddc9a6ce20465f0fa41de6d64 (diff)
Doctests now use equality checking instead of text comparisons
Diffstat (limited to 'test/sets.tm')
-rw-r--r--test/sets.tm13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/sets.tm b/test/sets.tm
index 85e53463..b30c2ce3 100644
--- a/test/sets.tm
+++ b/test/sets.tm
@@ -1,7 +1,8 @@
func main()
- >> t1 := @|10, 20, 30, 10|
- = @|10, 20, 30|
+ t1 := @|10, 20, 30, 10|
+ >> t1[]
+ = |10, 20, 30|
>> t1.has(10)
= yes
>> t1.has(-999)
@@ -29,11 +30,11 @@ func main()
= no
>> t1.add_all(t2)
- >> t1
- = @|10, 20, 30, 40|
+ >> t1[]
+ = |10, 20, 30, 40|
>> t1.remove_all(t2)
- >> t1
- = @|10, 20|
+ >> t1[]
+ = |10, 20|
>> |3, i for i in 5|
= |3, 1, 2, 4, 5|