summaryrefslogtreecommitdiff
path: root/test/benchmark
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-02 18:22:29 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-02 18:22:29 +0000
commitfe0aab0911594cc34a1e2faf26b6e7f5eabf2b8d (patch)
tree30833fa0a680805a0b01ff82b29c7a6bbefc76e5 /test/benchmark
parenteb86567b694ed926b416debcca8e4e0ea9b889c4 (diff)
* lib/benchmark.rb (Benchmark::Tms#add): fix NameError.
[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
Diffstat (limited to 'test/benchmark')
-rw-r--r--test/benchmark/test_benchmark.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/benchmark/test_benchmark.rb b/test/benchmark/test_benchmark.rb
new file mode 100644
index 0000000..6d39055
--- /dev/null
+++ b/test/benchmark/test_benchmark.rb
@@ -0,0 +1,10 @@
+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