Merge pull request #166 from jespersm/fix_tests

Fix tests
This commit is contained in:
Marc-Antoine ARNAUD 2023-12-19 21:49:53 +01:00 committed by GitHub
commit 7b6d831146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -870,8 +870,7 @@ fn de_subitem_issue_12() {
}
convert_and_validate!(
r#"
<?xml version="1.0" encoding="utf-8"?>
r#"<?xml version="1.0" encoding="utf-8"?>
<Struct>
<id>54</id>
<SubStruct>
@ -901,8 +900,7 @@ fn de_subitem_issue_12_with_sub() {
}
convert_and_validate!(
r#"
<?xml version="1.0" encoding="utf-8"?>
r#"<?xml version="1.0" encoding="utf-8"?>
<Struct>
<id>54</id>
<SubStruct>
@ -929,8 +927,7 @@ fn de_subitem_issue_12_attributes() {
}
convert_and_validate!(
r#"
<?xml version="1.0" encoding="utf-8"?>
r#"<?xml version="1.0" encoding="utf-8"?>
<Struct id="54">
<SubStruct id="86" />
</Struct>
@ -959,8 +956,7 @@ fn de_subitem_issue_12_attributes_with_sub() {
}
convert_and_validate!(
r#"
<?xml version="1.0" encoding="utf-8"?>
r#"<?xml version="1.0" encoding="utf-8"?>
<Struct id="54">
<sub1 id="63" />
<sub2 id="72" />

View File

@ -41,6 +41,6 @@ fn de_wrong_end_balise() {
let loaded: Result<Book, String> = from_str(content);
assert_eq!(
loaded,
Err("Unexpected closing tag: book, expected author".to_owned())
Err("Unexpected closing tag: book != author".to_owned())
);
}