Skip to content

Commit

Permalink
Fixed test for XML output
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-oconnell committed Mar 26, 2024
1 parent 5247398 commit 7956f20
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions thoth-export-server/src/xml/onix3_thoth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,14 @@ mod tests {
<Collection>
<CollectionType>10</CollectionType>"#
));
assert!(output.contains(
r#"
<CollectionIdentifier>
<CollectionIDType>01</CollectionIDType>
<IDTypeName>Series ID</IDTypeName>
<IDValue>00000000-0000-0000-bbbb-000000000002</IDValue>
</CollectionIdentifier>"#
));
assert!(output.contains(
r#"
<CollectionIdentifier>
Expand Down Expand Up @@ -1727,6 +1735,11 @@ mod tests {
r#"<?xml version="1.0" encoding="utf-8"?>
<Collection>
<CollectionType>10</CollectionType>
<CollectionIdentifier>
<CollectionIDType>01</CollectionIDType>
<IDTypeName>Series ID</IDTypeName>
<IDValue>00000000-0000-0000-bbbb-000000000002</IDValue>
</CollectionIdentifier>
<CollectionIdentifier>
<CollectionIDType>02</CollectionIDType>
<IDValue>11112222</IDValue>
Expand Down

0 comments on commit 7956f20

Please sign in to comment.