1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_syntax.rb: assertions for other heredocs

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-20 02:49:46 +00:00
parent 9d5abbff97
commit 0f4978d533

View file

@ -345,7 +345,11 @@ WARN
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