Skip to content

Commit

Permalink
Made to_xml() test compatible with Julia 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gbruer15 committed Mar 11, 2024
1 parent fe7dd5b commit 076f30c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/to_xml.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ struct CustomException <: Exception end
end

@testset "to_xml" begin
result = Pass(:null, nothing, nothing, nothing)
result = Pass(:null, :orig_expr, nothing, nothing)
node, _, _, _ = TestReports.to_xml(result)
@test node.name == "testcase"

result = Fail(:test, :null, nothing, nothing, LineNumberNode(1))
result = Fail(:test, :orig_expr, nothing, nothing, LineNumberNode(1))
node, _, _, _ = TestReports.to_xml(result)
@test node.name == "testcase"

result = Broken(:null, nothing)
result = Broken(:null, :orig_expr)
node, _, _, _ = TestReports.to_xml(result)
@test node.name == "testcase"

result = Error(:test_nonbool, :null, nothing, nothing, LineNumberNode(1))
result = Error(:test_nonbool, :orig_expr, nothing, nothing, LineNumberNode(1))
node, _, _, _ = TestReports.to_xml(result)
@test node.name == "testcase"
end

0 comments on commit 076f30c

Please sign in to comment.