ruby-changes:15548
From: nobu <ko1@a...>
Date: Fri, 23 Apr 2010 04:14:05 +0900 (JST)
Subject: [ruby-changes:15548] Ruby:r27451 (trunk): * test/ripper/test_parser_events.rb: more regexp literal tests.
nobu 2010-04-23 04:13:46 +0900 (Fri, 23 Apr 2010) New Revision: 27451 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27451 Log: * test/ripper/test_parser_events.rb: more regexp literal tests. Modified files: trunk/test/ripper/test_parser_events.rb Index: test/ripper/test_parser_events.rb =================================================================== --- test/ripper/test_parser_events.rb (revision 27450) +++ test/ripper/test_parser_events.rb (revision 27451) @@ -732,12 +732,24 @@ assert_equal true, thru_redo end + def test_regexp_add + thru_regexp_add = false + parse('/foo/', :on_regexp_add) {thru_regexp_add = true} + assert_equal true, thru_regexp_add + end + def test_regexp_literal thru_regexp_literal = false parse('//', :on_regexp_literal) {thru_regexp_literal = true} assert_equal true, thru_regexp_literal end + def test_regexp_new + thru_regexp_new = false + parse('//', :on_regexp_new) {thru_regexp_new = true} + assert_equal true, thru_regexp_new + end + def test_rescue thru_rescue = false parse('begin; rescue; end', :on_rescue) {thru_rescue = true} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/