You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-minidom0.12/minidom-fix-ipaddr-test.diff

15 lines
523 B

Fix IpAddr test, since octal numbers are not allowed:
https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html
--- a/src/convert.rs
+++ b/src/convert.rs
@@ -84,7 +84,7 @@ mod tests {
assert_eq!(18i32.into_attribute_value().unwrap(), "18");
assert_eq!((-19i64).into_attribute_value().unwrap(), "-19");
assert_eq!(
- IpAddr::from_str("127.000.0.1")
+ IpAddr::from_str("127.0.0.1")
.unwrap()
.into_attribute_value()
.unwrap(),