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

ruby-changes:49738

From: mame <ko1@a...>
Date: Mon, 15 Jan 2018 23:01:22 +0900 (JST)
Subject: [ruby-changes:49738] mame:r61855 (trunk): test/ruby/test_syntax.rb (test_command_with_cmd_brace_block): Added

mame	2018-01-15 23:01:16 +0900 (Mon, 15 Jan 2018)

  New Revision: 61855

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61855

  Log:
    test/ruby/test_syntax.rb (test_command_with_cmd_brace_block): Added
    
    The bison rules were not covered.

  Modified files:
    trunk/test/ruby/test_syntax.rb
Index: test/ruby/test_syntax.rb
===================================================================
--- test/ruby/test_syntax.rb	(revision 61854)
+++ test/ruby/test_syntax.rb	(revision 61855)
@@ -1191,6 +1191,11 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L1191
     assert_valid_syntax('while class Foo a = tap do end; end; break; end')
   end
 
+  def test_command_with_cmd_brace_block
+    assert_valid_syntax('obj.foo (1) {}')
+    assert_valid_syntax('obj::foo (1) {}')
+  end
+
   private
 
   def not_label(x) @result = x; @not_label ||= nil end

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

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