* 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
Родитель 679d83e6f2
Коммит 5cf4f78aea
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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")