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

ruby-changes:2861

From: ko1@a...
Date: 20 Dec 2007 09:50:30 +0900
Subject: [ruby-changes:2861] ko1 - Ruby:r14352 (trunk): * bootstraptest/test_syntax.rb: add a test.

ko1	2007-12-20 09:50:13 +0900 (Thu, 20 Dec 2007)

  New Revision: 14352

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/test_syntax.rb

  Log:
    * bootstraptest/test_syntax.rb: add a test.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14352&r2=14351
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_syntax.rb?r1=14352&r2=14351

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14351)
+++ ChangeLog	(revision 14352)
@@ -1,3 +1,7 @@
+Thu Dec 20 09:47:58 2007  Koichi Sasada  <ko1@a...>
+
+	* bootstraptest/test_syntax.rb: add a test.
+
 Thu Dec 20 09:40:51 2007  Koichi Sasada  <ko1@a...>
 
 	* compile.c (iseq_compile_each/NODE_RETURN): fix stack consistency.
Index: bootstraptest/test_syntax.rb
===================================================================
--- bootstraptest/test_syntax.rb	(revision 14351)
+++ bootstraptest/test_syntax.rb	(revision 14352)
@@ -644,5 +644,21 @@
 assert_normal_exit %q{
   eval "while true; return; end rescue p $!"
 }, '[ruby-dev:31663]'
+assert_equal :ok, %q{
+  def bar
+    raise
+  end
 
+  def foo
+    1.times{
+      begin
+        return bar
+      rescue
+        :ok
+      end
+    }
+  end
 
+  foo
+}
+

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

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