Skip to content

Commit

Permalink
add a test for #8 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 authored Jan 19, 2017
1 parent 77cbcfd commit a514d84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,10 @@ end
@test isempty(find(root(doc), "./term"))
@test find(root(doc), "go:term", ["go" => "http://www.geneontology.org/dtds/go.dtd#"]) == elements(root(doc))
@test find(root(doc), "./go:term", ["go" => "http://www.geneontology.org/dtds/go.dtd#"]) == elements(root(doc))

# pull/8
doc = parsexml("""<root xmlns="urn:foo"/>""")
@test isempty(find(root(doc), "//foo:notexit/*", [("foo", "urn:foo")]))
end

@testset "Misc" begin
Expand Down

0 comments on commit a514d84

Please sign in to comment.