mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fe0aab0911
[ruby-dev:40906] * test/benchmark/test_benchmark.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10 lines
200 B
Ruby
10 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
|