Explorar el Código

add test case for host: `http://192.168.0.257`

fixes #140
Pyfisch hace 10 años
padre
commit
0d7967d72a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      tests/tests.rs

+ 1 - 0
tests/tests.rs

@@ -366,4 +366,5 @@ fn host() {
     assert!(Host::parse("42.0x1232131").is_err());
     assert_eq!(Host::parse("111").unwrap(), Host::Ipv4(Ipv4Addr::new(0, 0, 0, 111)));
     assert_eq!(Host::parse("2..2.3").unwrap(), Host::Domain("2..2.3".to_owned()));
+    assert!(Host::parse("192.168.0.257").is_err());
 }