[前][次][番号順一覧][スレッド一覧]

ruby-changes:44181

From: nobu <ko1@a...>
Date: Mon, 26 Sep 2016 16:33:21 +0900 (JST)
Subject: [ruby-changes:44181] nobu:r56254 (trunk): test_exception.rb: another assertion

nobu	2016-09-26 16:33:16 +0900 (Mon, 26 Sep 2016)

  New Revision: 56254

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56254

  Log:
    test_exception.rb: another assertion
    
    * test/ruby/test_exception.rb (test_throw_false): test the thrown
      tag.  [Bug #12743]

  Modified files:
    trunk/test/ruby/test_exception.rb
Index: test/ruby/test_exception.rb
===================================================================
--- test/ruby/test_exception.rb	(revision 56253)
+++ test/ruby/test_exception.rb	(revision 56254)
@@ -183,11 +183,12 @@ class TestException < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L183
 
   def test_throw_false
     bug12743 = '[ruby-core:77229] [Bug #12743]'
-    assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
+    e = assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
       Thread.start {
         throw false
       }.join
     }
+    assert_same(false, e.tag, bug12743)
   end
 
   def test_else_no_exception

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]