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

ruby-changes:27828

From: marcandre <ko1@a...>
Date: Sat, 23 Mar 2013 08:03:02 +0900 (JST)
Subject: [ruby-changes:27828] marcandRe: r39880 (trunk): * test_enum.rb: Make test more precise

marcandre	2013-03-23 08:01:10 +0900 (Sat, 23 Mar 2013)

  New Revision: 39880

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

  Log:
    * test_enum.rb: Make test more precise

  Modified files:
    trunk/test/ruby/test_enum.rb

Index: test/ruby/test_enum.rb
===================================================================
--- test/ruby/test_enum.rb	(revision 39879)
+++ test/ruby/test_enum.rb	(revision 39880)
@@ -277,7 +277,7 @@ class TestEnumerable < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_enum.rb#L277
 
     ary = Object.new
     def ary.to_a;   [1, 2]; end
-    assert_raise(TypeError, NoMethodError) {%w(a b).zip(ary)}
+    assert_raise(TypeError) {%w(a b).zip(ary)}
     def ary.each; [3, 4].each{|e|yield e}; end
     assert_equal([[1, 3], [2, 4], [3, nil], [1, nil], [2, nil]], @obj.zip(ary))
     def ary.to_ary; [5, 6]; end

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

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