minidom: Replace IPv4 test with IPv6
This makes the tests pass again on nightly, and avoids using legacy IP while we have glorious IPv6 support everywhere nowadays. See also https://github.com/rust-lang/rust/issues/90199
This commit is contained in:
parent
4766a01d01
commit
7ddf5e5c33
1 changed files with 2 additions and 2 deletions
|
|
@ -84,11 +84,11 @@ mod tests {
|
||||||
assert_eq!(18i32.into_attribute_value().unwrap(), "18");
|
assert_eq!(18i32.into_attribute_value().unwrap(), "18");
|
||||||
assert_eq!((-19i64).into_attribute_value().unwrap(), "-19");
|
assert_eq!((-19i64).into_attribute_value().unwrap(), "-19");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
IpAddr::from_str("127.000.0.1")
|
IpAddr::from_str("0000:0::1")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.into_attribute_value()
|
.into_attribute_value()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
"127.0.0.1"
|
"::1"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue