Skip to content

Commit c1e1e84

Browse files
kshyattJeffBezanson
authored andcommitted
Two missing ip tests ... again (#25963)
1 parent 94ee4f5 commit c1e1e84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/socket.jl

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ using Random
2222
let ipv = parse(IPAddr, "127.0.0.1")
2323
@test isa(ipv, IPv4)
2424
@test ipv == ip"127.0.0.1"
25+
@test sprint(show, ipv) == "ip\"127.0.0.1\""
2526
end
2627

2728
@test_throws ArgumentError parse(IPv4, "192.0xFFFFFFF")
@@ -49,6 +50,7 @@ using Random
4950
@test ipv == ip"0:0:0:0:0:ffff:127.0.0.1"
5051
end
5152

53+
@test_throws ArgumentError IPv6(-1)
5254
@test_throws ArgumentError IPv6(1,1,1,1,1,1,1,-1)
5355
@test_throws ArgumentError IPv6(1,1,1,1,1,1,1,typemax(UInt16)+1)
5456

0 commit comments

Comments
 (0)