@@ -39,6 +39,7 @@ func TestIssue430(t *testing.T) {
3939 "::FFFF:192.168.0.1" : false ,
4040 // "[::FFFF:C0A8:1]:80" doesn't parse per net.ParseIP()
4141 // "[::FFFF:C0A8:1%1]:80" doesn't parse per net.ParseIP()
42+ "2001:db8::" : false ,
4243 }
4344
4445 for datum := range data {
@@ -53,11 +54,11 @@ func TestIssue430(t *testing.T) {
5354 err = schema .VisitJSON (datum )
5455 require .NoError (t , err )
5556 if isV4 {
56- require .Nil (t , validateIPv4 (datum ), "%q should be IPv4" , datum )
57- require .NotNil (t , validateIPv6 (datum ), "%q should not be IPv6" , datum )
57+ assert .Nil (t , validateIPv4 (datum ), "%q should be IPv4" , datum )
58+ assert .NotNil (t , validateIPv6 (datum ), "%q should not be IPv6" , datum )
5859 } else {
59- require .NotNil (t , validateIPv4 (datum ), "%q should not be IPv4" , datum )
60- require .Nil (t , validateIPv6 (datum ), "%q should be IPv6" , datum )
60+ assert .NotNil (t , validateIPv4 (datum ), "%q should not be IPv4" , datum )
61+ assert .Nil (t , validateIPv6 (datum ), "%q should be IPv6" , datum )
6162 }
6263 }
6364}
0 commit comments