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

ruby-changes:12688

From: nobu <ko1@a...>
Date: Wed, 5 Aug 2009 13:01:21 +0900 (JST)
Subject: [ruby-changes:12688] Ruby:r24404 (trunk): * bootstraptest/test_exception.rb: test for .

nobu	2009-08-05 13:01:08 +0900 (Wed, 05 Aug 2009)

  New Revision: 24404

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24404

  Log:
    * bootstraptest/test_exception.rb: test for [ruby-core:24767].

  Modified files:
    trunk/bootstraptest/test_exception.rb

Index: bootstraptest/test_exception.rb
===================================================================
--- bootstraptest/test_exception.rb	(revision 24403)
+++ bootstraptest/test_exception.rb	(revision 24404)
@@ -370,7 +370,7 @@
 }
 
 ##
-assert_match /undefined method `foo\'/, %q{
+assert_match /undefined method `foo\'/, %q{#`
   STDERR.reopen(STDOUT)
   class C
     def inspect
@@ -402,3 +402,15 @@
   exc.inspect
 }, '[ruby-dev:32608]'
 
+assert_equal 'exception class/object expected', %q{
+  class ZeroDivisionError
+    def self.new(message)
+      42
+    end
+  end
+  begin
+    1/0
+  rescue Exception => e
+    e.message
+  end
+}, '[ruby-core:24767]'

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

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