diff --git a/src/groups.jl b/src/groups.jl index e067ef1..48e9671 100644 --- a/src/groups.jl +++ b/src/groups.jl @@ -297,8 +297,8 @@ function Base.show(io::IO, group::BenchmarkGroup) println(io) print(io, pad, " ", repr(k), " => ") show(IOContext(io, :pad => "\t"*pad), v) - count > nbound && (println(io); print(io, pad, " ⋮"); break) count += 1 + count > nbound && length(group) > count && (println(io); print(io, pad, " ⋮"); break) end end diff --git a/test/GroupsTests.jl b/test/GroupsTests.jl index 7489a41..5fe56f8 100644 --- a/test/GroupsTests.jl +++ b/test/GroupsTests.jl @@ -306,7 +306,6 @@ g1["c"] = tc 3-element BenchmarkTools.BenchmarkGroup: tags: ["1", "2"] "c" => TrialEstimate(1.000 ns) - "b" => TrialEstimate(4.123 μs) ⋮""" @test sprint(show, g1; context = :limit => false) == """ 3-element BenchmarkTools.BenchmarkGroup: @@ -318,7 +317,6 @@ g1["c"] = tc 3-element BenchmarkTools.BenchmarkGroup: tags: ["1", "2"] "c" => TrialEstimate(1.000 ns) - "b" => TrialEstimate(4.123 μs) ⋮""" # end # module