Skip to content

Commit 726408d

Browse files
author
bors-servo
committed
Auto merge of #141 - pyfisch:fix140, r=SimonSapin
add test case for host: `http://192.168.0.257` fixes #140 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/141) <!-- Reviewable:end -->
2 parents 009c310 + 0d7967d commit 726408d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,5 @@ fn host() {
366366
assert!(Host::parse("42.0x1232131").is_err());
367367
assert_eq!(Host::parse("111").unwrap(), Host::Ipv4(Ipv4Addr::new(0, 0, 0, 111)));
368368
assert_eq!(Host::parse("2..2.3").unwrap(), Host::Domain("2..2.3".to_owned()));
369+
assert!(Host::parse("192.168.0.257").is_err());
369370
}

0 commit comments

Comments
 (0)