diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 19:34:31 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 19:34:31 -0500 |
| commit | 6d2017d5b811826ac84e8d1df6dba84381cf6d2d (patch) | |
| tree | ad20aa62b2dede2a1733f8bdaaaed1c249e44d41 | |
| parent | e5e9c8b46c5deb8de9053c5906d0b9f406097816 (diff) | |
Add serialization test case
| -rw-r--r-- | test/serialization.tm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/serialization.tm b/test/serialization.tm index 218b0335..51b5b2a2 100644 --- a/test/serialization.tm +++ b/test/serialization.tm @@ -93,3 +93,9 @@ func main(): >> DESERIALIZE(bytes):Num? == obj = yes + do: + cases := [0, -1, 1, 10, 100000, 999999999999999999999999999] + for i in cases: + >> bytes := i:serialize() + >> DESERIALIZE(bytes):Int == i + = yes |
