Skip to content

Commit

Permalink
Revise print bound for BenchmarkGroup (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic authored Jun 25, 2021
1 parent dea246d commit 3e7b5cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/groups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions test/GroupsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 3e7b5cf

Please sign in to comment.