ruby-changes:41142
From: nobu <ko1@a...>
Date: Sun, 20 Dec 2015 11:49:50 +0900 (JST)
Subject: [ruby-changes:41142] nobu:r53215 (trunk): test_syntax.rb: assertions for other heredocs
nobu 2015-12-20 11:49:46 +0900 (Sun, 20 Dec 2015) New Revision: 53215 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53215 Log: test_syntax.rb: assertions for other heredocs Modified files: trunk/test/ruby/test_syntax.rb Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 53214) +++ test/ruby/test_syntax.rb (revision 53215) @@ -345,7 +345,11 @@ WARN https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L345 def test_heredoc_after_label bug11849 = '[ruby-core:72396] [Bug #11849]' assert_valid_syntax("{label:<<DOC\n""DOC\n""}", bug11849) + assert_valid_syntax("{label:<<-DOC\n""DOC\n""}", bug11849) + assert_valid_syntax("{label:<<~DOC\n""DOC\n""}", bug11849) assert_valid_syntax("{label: <<DOC\n""DOC\n""}", bug11849) + assert_valid_syntax("{label: <<-DOC\n""DOC\n""}", bug11849) + assert_valid_syntax("{label: <<~DOC\n""DOC\n""}", bug11849) end def test_duplicated_arg -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/