[ruby/benchmark] Add comment about terminating newline in captions; fix test method name.
https://github.com/ruby/benchmark/commit/02ce298d3e
This commit is contained in:
parent
2440d60acb
commit
4f39a35b60
@ -128,6 +128,9 @@ module Benchmark
|
|||||||
# benchmark tests. Reserves +label_width+ leading spaces for
|
# benchmark tests. Reserves +label_width+ leading spaces for
|
||||||
# labels on each line. Prints +caption+ at the top of the
|
# labels on each line. Prints +caption+ at the top of the
|
||||||
# report, and uses +format+ to format each line.
|
# report, and uses +format+ to format each line.
|
||||||
|
# (Note: +caption+ must contain a terminating newline character,
|
||||||
|
# see the default Benchmark::Tms::CAPTION for an example.)
|
||||||
|
#
|
||||||
# Returns an array of Benchmark::Tms objects.
|
# Returns an array of Benchmark::Tms objects.
|
||||||
#
|
#
|
||||||
# If the block returns an array of
|
# If the block returns an array of
|
||||||
|
@ -71,7 +71,7 @@ third --time-- --time-- --time-- ( --time--)
|
|||||||
BENCH
|
BENCH
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_benchmark_makes_extra_calcultations_with_an_Array_at_the_end_of_the_benchmark_and_show_the_result
|
def test_benchmark_makes_extra_calculations_with_an_Array_at_the_end_of_the_benchmark_and_show_the_result
|
||||||
assert_equal(BENCHMARK_OUTPUT_WITH_TOTAL_AVG,
|
assert_equal(BENCHMARK_OUTPUT_WITH_TOTAL_AVG,
|
||||||
capture_bench_output(:benchmark,
|
capture_bench_output(:benchmark,
|
||||||
Benchmark::CAPTION, 7,
|
Benchmark::CAPTION, 7,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user