fix namespace test

This commit is contained in:
Marc-Antoine Arnaud 2018-12-21 18:49:31 +01:00
parent 7255e85925
commit d398fa47d6

View File

@ -43,7 +43,7 @@ fn de_struct_namespace() {
let content = "<?xml version=\"1.0\" encoding=\"utf-8\"?><ns:book xmlns:ns=\"http://www.sample.com/ns/domain2\"><ns:author>Antoine de Saint-Exupéry</ns:author><ns:title>Little prince</ns:title></ns:book>";
let loaded: Result<Book, String> = from_str(content);
assert_eq!(loaded, Err("bad namespace".to_string()));
assert_eq!(loaded, Err("bad namespace for book with http://www.sample.com/ns/domain".to_string()));
}
#[test]