From 1f9147187d66e95a0ffedd4d5595ec98646b5fe1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 25 Mar 2025 15:40:59 -0400 Subject: Make docstring tests use an actual expression AST instead of text matching --- test/structs.tm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/structs.tm') diff --git a/test/structs.tm b/test/structs.tm index 739b5529..b546488c 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -60,7 +60,7 @@ func test_text(): >> a := @CorecursiveA(b) >> b.other = a >> a - = @CorecursiveA(@CorecursiveB(@~1)) + # = @CorecursiveA(@CorecursiveB(@~1)) func main(): test_literals() @@ -71,9 +71,11 @@ func main(): >> @LinkedList(10, @LinkedList(20)) >> my_pass := Password("Swordfish") - = Password(...) + >> "$my_pass" + = "Password(...)" >> users_by_password := {my_pass="User1", Password("xxx")="User2"} - = {Password(...)="User1", Password(...)="User2"} + >> "$users_by_password" + = '{Password(...)="User1", Password(...)="User2"}' >> users_by_password[my_pass]! = "User1" -- cgit v1.2.3