Skip to content

Commit b2a1845

Browse files
committed
fix test on 1.6
1 parent 66ccdc3 commit b2a1845

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

test/TrialsTests.jl

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,20 @@ BenchmarkTools.TrialEstimate:
214214

215215
@test sprint(show, [ta, tb]) == "BenchmarkTools.TrialEstimate[0.490 ns, 1.000 ns]"
216216

217-
# @test sprint(show, "text/plain", [ta, tb]) == """
218-
# 2-element Array{BenchmarkTools.TrialEstimate,1}:
219-
# 0.490 ns
220-
# 1.000 ns"""
217+
@static if VERSION < v"1.6-"
218+
219+
@test sprint(show, "text/plain", [ta, tb]) == """
220+
2-element Array{BenchmarkTools.TrialEstimate,1}:
221+
0.490 ns
222+
1.000 ns"""
223+
224+
else
225+
226+
@test sprint(show, "text/plain", [ta, tb]) == """
227+
2-element Vector{BenchmarkTools.TrialEstimate}:
228+
0.490 ns
229+
1.000 ns"""
230+
231+
end
221232

222233
end # module

0 commit comments

Comments
 (0)