mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
11 lines
200 B
Ruby
11 lines
200 B
Ruby
|
require "test/unit"
|
||
|
require "benchmark"
|
||
|
|
||
|
class TestBenchmark < Test::Unit::TestCase
|
||
|
def test_add!
|
||
|
assert_nothing_raised("[ruby-dev:40906]") do
|
||
|
Benchmark::Tms.new.add! {}
|
||
|
end
|
||
|
end
|
||
|
end
|