aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/serialization.tm5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/serialization.tm b/test/serialization.tm
index 258282c1..12917f98 100644
--- a/test/serialization.tm
+++ b/test/serialization.tm
@@ -53,7 +53,10 @@ func main()
do
>> obj := {"A"=10, "B"=20; fallback={"C"=30}}
>> bytes := obj.serialized()
- >> deserialize(bytes -> {Text=Int}) == obj
+ >> roundtrip := deserialize(bytes -> {Text=Int})
+ >> roundtrip == obj
+ = yes
+ >> roundtrip.fallback == obj.fallback
= yes
do