ref: 5dba8155dcecfd9f52856f5e658a189f2746c850
parent: f266309ebf7cdc6e8324b1849a273faac327111c
author: Ori Bernstein <ori@eigenstate.org>
date: Thu May 26 17:49:29 EDT 2016
Add some more ipv6 addr tests.
--- a/lib/std/test/ipparse.myr
+++ b/lib/std/test/ipparse.myr
@@ -17,6 +17,18 @@
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, \