summaryrefslogtreecommitdiff
path: root/lib/std/test/ipparse.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-26 21:49:29 -0700
committerOri Bernstein <ori@eigenstate.org>2016-05-26 22:08:01 -0700
commit5dba8155dcecfd9f52856f5e658a189f2746c850 (patch)
tree7f714871dabd278aa4ab20b1b5588fa673a44f77 /lib/std/test/ipparse.myr
parentf266309ebf7cdc6e8324b1849a273faac327111c (diff)
downloadmc-5dba8155dcecfd9f52856f5e658a189f2746c850.tar.gz
Add some more ipv6 addr tests.
Diffstat (limited to 'lib/std/test/ipparse.myr')
-rw-r--r--lib/std/test/ipparse.myr12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/std/test/ipparse.myr b/lib/std/test/ipparse.myr
index 484a26e..2f9bbfb 100644
--- a/lib/std/test/ipparse.myr
+++ b/lib/std/test/ipparse.myr
@@ -17,6 +17,18 @@ const main = {
0x21, 0x10, 0xdf, 0x07, \
0xfa, 0xce, 0xb0, 0x0c, \
0x00, 0x00, 0x00, 0x01])
+ eq("2a03:2880:2110::face:b00c:0:1", \
+ `std.Some `std.Ipv6 [ \
+ 0x2a, 0x03, 0x28, 0x80, \
+ 0x21, 0x10, 0x00, 0x00, \
+ 0xfa, 0xce, 0xb0, 0x0c, \
+ 0x00, 0x00, 0x00, 0x01])
+ eq("2a03:2880:10::face:b00c:0:1", \
+ `std.Some `std.Ipv6 [ \
+ 0x2a, 0x03, 0x28, 0x80, \
+ 0x00, 0x10, 0x00, 0x00, \
+ 0xfa, 0xce, 0xb0, 0x0c, \
+ 0x00, 0x00, 0x00, 0x01])
eq("abcd::dcba", \
`std.Some `std.Ipv6 [ \
0xab, 0xcd, 0x00, 0x00, \