diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-25 15:40:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-25 15:40:59 -0400 |
| commit | 1f9147187d66e95a0ffedd4d5595ec98646b5fe1 (patch) | |
| tree | 14281e5cbde8e15fae63953b72844fb1a11d6f73 /test/structs.tm | |
| parent | d88d8648dc7802fbeac2f28dc5f2ef8fdfe1a9e4 (diff) | |
Make docstring tests use an actual expression AST instead of text
matching
Diffstat (limited to 'test/structs.tm')
| -rw-r--r-- | test/structs.tm | 8 |
1 files changed, 5 insertions, 3 deletions
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" |
