Skip to content

Commit 485e162

Browse files
committed
account for dictionary order difference on 32 bit
1 parent 7e2d009 commit 485e162

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/create.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ xs3 = new_child(xroot, "State")
1616
add_text(xs3, "California")
1717
set_attributes(xs3; tag="CA", cap="Sacramento")
1818

19-
rtxt = """
19+
rtxt1 = """
2020
<?xml version="1.0" encoding="utf-8"?>
2121
<States>
2222
<State tag="MA">Massachusetts</State>
@@ -25,6 +25,15 @@ rtxt = """
2525
</States>
2626
"""
2727

28-
@assert strip(string(xdoc)) == strip(rtxt)
28+
rtxt2 = """
29+
<?xml version="1.0" encoding="utf-8"?>
30+
<States>
31+
<State tag="MA">Massachusetts</State>
32+
<State cap="Springfield" tag="IL">Illinois</State>
33+
<State tag="CA" cap="Sacramento">California</State>
34+
</States>
35+
"""
36+
37+
@assert (strip(string(xdoc)) == strip(rtxt1)) || (strip(string(xdoc)) == strip(rtxt2))
2938

3039
free(xdoc)

0 commit comments

Comments
 (0)