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

ruby-changes:31873

From: sorah <ko1@a...>
Date: Mon, 2 Dec 2013 02:07:04 +0900 (JST)
Subject: [ruby-changes:31873] sorah:r43952 (trunk): * test/ruby/test_case.rb (test_nomethoderror):

sorah	2013-12-02 02:06:56 +0900 (Mon, 02 Dec 2013)

  New Revision: 43952

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

  Log:
    * test/ruby/test_case.rb (test_nomethoderror):
      Add test related to r43913, r43914

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_case.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43951)
+++ ChangeLog	(revision 43952)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Dec  2 02:03:47 2013  Shota Fukumori  <her@s...>
+
+	* test/ruby/test_case.rb (test_nomethoderror):
+	  Add test related to r43913, r43914
+
 Mon Dec  2 00:53:01 2013  NAKAMURA Usaku  <usa@r...>
 
 	* hash.c (getenv): use ANSI codepage version of getenv() for miniruby
Index: test/ruby/test_case.rb
===================================================================
--- test/ruby/test_case.rb	(revision 43951)
+++ test/ruby/test_case.rb	(revision 43952)
@@ -114,4 +114,12 @@ class TestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_case.rb#L114
 
     assert(flag)
   end
+
+  def test_nomethoderror
+    assert_raise(NoMethodError) {
+      case 1
+      when Class.new(BasicObject) { }.new
+      end
+    }
+  end
 end

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

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