ruby-changes:2233
From: ko1@a...
Date: 16 Oct 2007 20:06:38 +0900
Subject: [ruby-changes:2233] akr - Ruby:r13724 (trunk): It should be ArgumentError that
akr 2007-10-16 20:06:27 +0900 (Tue, 16 Oct 2007) New Revision: 13724 Modified files: trunk/bootstraptest/test_knownbug.rb Log: It should be ArgumentError that Regexp.union( "a", Regexp.new("\x80".force_encoding("euc-jp")), Regexp.new("\x80".force_encoding("utf-8"))). http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13724&r2=13723 Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 13723) +++ bootstraptest/test_knownbug.rb (revision 13724) @@ -45,3 +45,15 @@ assert_normal_exit %q{ Regexp.union("a", "a") } + +assert_equal 'ok', %q{ + begin + Regexp.union( + "a", + Regexp.new("\x80".force_encoding("euc-jp")), + Regexp.new("\x80".force_encoding("utf-8"))) + :ng + rescue ArgumentError + :ok + end +} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml