Skip to content

Commit e998078

Browse files
committed
add a few tests
1 parent 3a29d22 commit e998078

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ using Test
1010
doc2 = Document("test.xml")
1111
@test doc == doc2
1212
end
13+
@testset "equality" begin
14+
@test XML.h("tag"; x=1, y=2) == XML.h("tag"; y=2, x=1)
15+
@test XML.h("tag"; x=1, y=2) != XML.h("tag"; y=1, x=1)
16+
end
1317

1418
@testset "books.xml" begin
1519
doc = Document(joinpath(@__DIR__, "books.xml"))

0 commit comments

Comments
 (0)