aboutsummaryrefslogtreecommitdiff
path: root/test/tables.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/tables.tm
parent46b0dbc5a448249ddc9a6ce20465f0fa41de6d64 (diff)
Doctests now use equality checking instead of text comparisons
Diffstat (limited to 'test/tables.tm')
-rw-r--r--test/tables.tm12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tables.tm b/test/tables.tm
index 2254a7a0..1f4244f9 100644
--- a/test/tables.tm
+++ b/test/tables.tm
@@ -59,8 +59,8 @@ func main()
>> t3 := @{1=10, 2=20, 3=30}
>> t3.remove(3)
- >> t3
- = @{1=10, 2=20}
+ >> t3[]
+ = {1=10, 2=20}
do
>> plain := {1=10, 2=20, 3=30}
@@ -85,8 +85,8 @@ func main()
>> t4 := &{"one"= 1}
>> t4["one"] = 999
>> t4["two"] = 222
- >> t4
- = &{"one"=999, "two"=222}
+ >> t4[]
+ = {"one"=999, "two"=222}
do
assert {1=1, 2=2} == {2=2, 1=1}
@@ -114,5 +114,5 @@ func main()
>> counter["y"] += 1
>> counter
- >> counter
- = &{"x"=10, "y"=1; default=0}
+ >> counter[]
+ = {"x"=10, "y"=1; default=0}