Skip to content

Commit 0d7967d

Browse files
committed
add test case for host: http://192.168.0.257`
fixes #140
1 parent 66545ce commit 0d7967d

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)