aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-13 16:46:56 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-13 16:46:56 -0700
commita7e33fedada38f4454483eebb506633afde6be5e (patch)
tree46ec580255d9f42c546b1263e1d4453dd3c25bb5 /src
parentf6f64b75ee56dab0853be8af80ef146d011438f2 (diff)
Add test vector to test Error::TooManyDigits
Diffstat (limited to 'src')
-rw-r--r--src/uri.rs1
1 files changed, 1 insertions, 0 deletions
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(),