ruby-changes:25119
From: usa <ko1@a...>
Date: Sat, 13 Oct 2012 01:39:08 +0900 (JST)
Subject: [ruby-changes:25119] usa:r37171 (trunk): * test/ruby/test_regexp.rb
usa 2012-10-13 01:38:52 +0900 (Sat, 13 Oct 2012) New Revision: 37171 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37171 Log: * test/ruby/test_regexp.rb (TestRegexp#test_raw_hyphen_and_type_char_after_range): added new test. ref [ruby-core:47115] [Backport #6853] Modified files: trunk/ChangeLog trunk/test/ruby/test_regexp.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 37170) +++ ChangeLog (revision 37171) @@ -1,3 +1,9 @@ +Sat Oct 13 01:37:48 2012 NAKAMURA Usaku <usa@r...> + + * test/ruby/test_regexp.rb + (TestRegexp#test_raw_hyphen_and_type_char_after_range): added new + test. ref [ruby-core:47115] [Backport #6853] + Fri Oct 12 21:55:08 2012 Hiroshi Shirosaki <h.shirosaki@g...> * include/ruby/win32.h (rb_w32_pow): set floating point precision Index: test/ruby/test_regexp.rb =================================================================== --- test/ruby/test_regexp.rb (revision 37170) +++ test/ruby/test_regexp.rb (revision 37171) @@ -911,4 +911,14 @@ assert_match(/invalid hex escape/, error.message) assert_equal(1, error.message.scan(/.*invalid .*escape.*/i).size, bug3539) end + + def test_raw_hyphen_and_type_char_after_range + bug6853 = '[ruby-core:47115]' + begin + verbose, $VERBOSE = $VERBOSE, nil + assert_match(/[0-1-\s]/, ' ', bug6853) + ensure + $VERBOSE = verbose + end + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/