Add test for secret structs

This commit is contained in:
Bruce Hill 2024-03-09 19:06:09 -05:00
parent 170c0a4197
commit 89d7098654

View File

@ -52,3 +52,12 @@ test_mixed()
struct LinkedList(x:Int, next=!LinkedList)
>> @LinkedList(10, @LinkedList(20))
struct Password(text:Text; secret)
>> my_pass := Password("Swordfish")
= Password(...)
>> users_by_password := {my_pass=> "User1", Password("xxx")=>"User2"}
= {Password(...)=>"User1", Password(...)=>"User2"}
>> users_by_password[my_pass]
= "User1"