From a7e33fedada38f4454483eebb506633afde6be5e Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Tue, 13 Oct 2020 16:46:56 -0700 Subject: Add test vector to test Error::TooManyDigits --- src/uri.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/uri.rs b/src/uri.rs index 53abd52..cf1349a 100644 --- a/src/uri.rs +++ b/src/uri.rs @@ -1604,6 +1604,7 @@ mod tests { ("http://[2001:db8:85a3:8d3:1319:8a2e:370::1]/", Error::TooManyAddressParts).into(), ("http://[2001:db8:85a3::8a2e:0:]/", Error::TruncatedHost).into(), ("http://[2001:db8:85a3::8a2e::]/", Error::TooManyDoubleColons).into(), + ("http://[20001:db8:85a3::1]/", Error::TooManyDigits).into(), ("http://[]/", Error::TooFewAddressParts).into(), ("http://[:]/", Error::TruncatedHost).into(), ("http://[v]/", Error::TruncatedHost).into(), -- cgit v1.2.3