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:
parent
9d5abbff97
commit
0f4978d533
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue