1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/test/unit.rb (assert_nothing_thrown): don't intern.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-10-18 15:15:57 +00:00
parent 679d83e6f2
commit 5cf4f78aea
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Oct 19 00:15:03 2008 Tanaka Akira <akr@fsij.org>
* lib/test/unit.rb (assert_nothing_thrown): don't intern.
Sat Oct 18 14:40:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (num_sadded): remove newly defined singleton method

View file

@ -92,8 +92,8 @@ module Test
begin
yield
rescue ArgumentError => error
raise error if /^uncaught throw (.+)$/ !~ error.message
msg = message(msg) { "<#{$1.intern}> was thrown when nothing was expected" }
raise error if /\Auncaught throw (.+)\z/m !~ error.message
msg = message(msg) { "<#{$1}> was thrown when nothing was expected" }
flunk(msg)
end
assert(true, "Expected nothing to be thrown")