aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-19 15:45:33 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-19 15:45:33 -0500
commit90573ba7a15bb47a11c1eb6f69ed04c01b69724d (patch)
tree0eba69a480d59862bff9294533618b81003c2e32 /test
parent2c904ff1737e34008f7a6c5d4b072d87a45a3fbc (diff)
Tweak behavior for printing recursive structures
Diffstat (limited to 'test')
-rw-r--r--test/structs.tm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/structs.tm b/test/structs.tm
index d68bbe8b..d4b0a87e 100644
--- a/test/structs.tm
+++ b/test/structs.tm
@@ -55,10 +55,18 @@ func test_mixed():
>> set:has(y)
= no
+func test_text():
+ >> b := @CorecursiveB()
+ >> a := @CorecursiveA(b)
+ >> b.other = a
+ >> a
+ = @CorecursiveA(@CorecursiveB(@~1?)?)
+
func main():
test_literals()
test_metamethods()
test_mixed()
+ test_text()
>> @LinkedList(10, @LinkedList(20))