diff options
Diffstat (limited to 'lib/std/test/ipparse.myr')
-rw-r--r-- | lib/std/test/ipparse.myr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/test/ipparse.myr b/lib/std/test/ipparse.myr index ae23709..ad408cb 100644 --- a/lib/std/test/ipparse.myr +++ b/lib/std/test/ipparse.myr @@ -52,6 +52,12 @@ const main = { 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00]) + eq("2001:b88:1202::10", \ + `std.Some `std.Ipv6 [ \ + 0x20, 0x01, 0x0b, 0x88, \ + 0x12, 0x02, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x10]) /* invalid ipv4 addresses */ eq("2a03:2880:2110:df07:face:b00c:0:1:abc", `std.None) /* too long */ |