ruby-changes:15547
From: nobu <ko1@a...>
Date: Fri, 23 Apr 2010 04:11:46 +0900 (JST)
Subject: [ruby-changes:15547] Ruby:r27450 (trunk): * test/ripper/test_parser_events.rb (test_unterminated_regexp):
nobu 2010-04-23 04:11:28 +0900 (Fri, 23 Apr 2010) New Revision: 27450 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27450 Log: * test/ripper/test_parser_events.rb (test_unterminated_regexp): separate test. Modified files: trunk/ChangeLog trunk/test/ripper/test_parser_events.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27449) +++ ChangeLog (revision 27450) @@ -1,3 +1,8 @@ +Fri Apr 23 04:11:26 2010 Nobuyoshi Nakada <nobu@r...> + + * test/ripper/test_parser_events.rb (test_unterminated_regexp): + separate test. + Fri Apr 23 01:47:54 2010 NAKAMURA Usaku <usa@r...> * win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with Index: test/ripper/test_parser_events.rb =================================================================== --- test/ripper/test_parser_events.rb (revision 27449) +++ test/ripper/test_parser_events.rb (revision 27450) @@ -154,7 +154,7 @@ def test_operator_ambiguous thru_operator_ambiguous = false - parse('a=1; a //', :on_operator_ambiguous) {thru_operator_ambiguous = true} + parse('a=1; a %[]', :on_operator_ambiguous) {thru_operator_ambiguous = true} assert_equal true, thru_operator_ambiguous end @@ -1088,4 +1088,12 @@ ["[fcall(proc,[],&block([],[void()]))]"], [], '[ruby-dev:39423]') end end + + def test_unterminated_regexp + assert_normal_exit(<<"SRC") +$:.unshift(File.dirname(#{File.expand_path(__FILE__).dump})) +require 'dummyparser' +DummyParser.new('/').parse.to_s +SRC + end end if ripper_test -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/