Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 10, 2020
1 parent 8bf0b7b commit 7f17b6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1301,10 +1301,10 @@ end
@testset "Misc" begin
@testset "show" begin
doc = parsexml("""<root attr="val"/>""")
@test occursin(r"^EzXML.Node\(<DOCUMENT_NODE@0x[a-f0-9]+>\)$", repr(doc.node))
@test occursin(r"^EzXML.Node\(<ELEMENT_NODE\[root\]@0x[a-f0-9]+>\)$", repr(root(doc)))
@test occursin(r"^EzXML.Node\(<ATTRIBUTE_NODE\[attr\]@0x[a-f0-9]+>\)$", repr(attributes(root(doc))[1]))
@test occursin(r"^EzXML.Document\(EzXML.Node\(<DOCUMENT_NODE@0x[a-f0-9]+>\)\)$", repr(doc))
@test occursin(r"^EzXML.Node\(<DOCUMENT_NODE>\)$", repr(doc.node))
@test occursin(r"^EzXML.Node\(<ELEMENT_NODE\[root\]>\)$", repr(root(doc)))
@test occursin(r"^EzXML.Node\(<ATTRIBUTE_NODE\[attr\]>\)$", repr(attributes(root(doc))[1]))
@test occursin(r"^EzXML.Document\(EzXML.Node\(<DOCUMENT_NODE>\)\)$", repr(doc))

sample2 = joinpath(dirname(@__FILE__), "sample2.xml")
reader = open(EzXML.StreamReader, sample2)
Expand Down

0 comments on commit 7f17b6f

Please sign in to comment.