diff --git a/test/graphml.jl b/test/graphml.jl index 679a8f43..87088686 100644 --- a/test/graphml.jl +++ b/test/graphml.jl @@ -7,9 +7,7 @@ @test length(graph.edge) == 6 save_graphml("../test/data/ieee13_nested.graphml", eng; type="nested") - open("../test/data/ieee13_nested.graphml", "r") do io - @test length(readlines(io)) == 1533 - end + @test length(EzXML.nodes(EzXML.nodes(EzXML.readxml("../test/data/ieee13_nested.graphml").node)[1])) == 185 rm("../test/data/ieee13_nested.graphml") end @@ -19,9 +17,7 @@ @test length(graph.edge) == 57 save_graphml("../test/data/ieee13_unnested.graphml", eng; type="unnested") - open("../test/data/ieee13_unnested.graphml", "r") do io - @test length(readlines(io)) == 1503 - end + @test length(EzXML.nodes(EzXML.nodes(EzXML.readxml("../test/data/ieee13_unnested.graphml").node)[1])) == 185 rm("../test/data/ieee13_unnested.graphml") end end diff --git a/test/runtests.jl b/test/runtests.jl index f3d176fe..1536f646 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,6 +8,7 @@ Distributed.addprocs(3) # cd("test"); import Gurobi; using PowerModelsONM import JSON +import EzXML import PowerModelsDistribution as PMD import Juniper