From a514d84689697016e04b73a5a388db51e9b4cb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenta=20Sato=20=28=E4=BD=90=E8=97=A4=20=E5=BB=BA=E5=A4=AA?= =?UTF-8?q?=29?= Date: Thu, 19 Jan 2017 11:48:00 +0900 Subject: [PATCH] add a test for #8 (#9) --- test/runtests.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index d4db87e..ac5a437 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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("""""") + @test isempty(find(root(doc), "//foo:notexit/*", [("foo", "urn:foo")])) end @testset "Misc" begin