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

ruby-changes:15535

From: nobu <ko1@a...>
Date: Thu, 22 Apr 2010 17:05:29 +0900 (JST)
Subject: [ruby-changes:15535] Ruby:r27438 (trunk): * test/ripper/test_parser_events.rb (test_operator_ambiguous): new test.

nobu	2010-04-22 17:05:15 +0900 (Thu, 22 Apr 2010)

  New Revision: 27438

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

  Log:
    * test/ripper/test_parser_events.rb (test_operator_ambiguous): new test.

  Modified files:
    trunk/test/ripper/test_parser_events.rb

Index: test/ripper/test_parser_events.rb
===================================================================
--- test/ripper/test_parser_events.rb	(revision 27437)
+++ test/ripper/test_parser_events.rb	(revision 27438)
@@ -152,6 +152,12 @@
     assert_equal true, thru_arg_ambiguous
   end
 
+  def test_operator_ambiguous
+    thru_operator_ambiguous = false
+    parse('a=1; a //', :on_operator_ambiguous) {thru_operator_ambiguous = true}
+    assert_equal true, thru_operator_ambiguous
+  end
+
   def test_array   # array literal
     assert_equal '[array([1,2,3])]', parse('[1,2,3]')
   end

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

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