diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-17 16:14:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-17 16:14:44 +0000 |
commit | af18eafc44bb3bb6aff78f244a67b807500e3e9f (patch) | |
tree | 865dabb63fdb83b0b9b053e18ab31d16b809e15a /test | |
parent | 5ce4a050b58296f01d0a09eb7f7b8d39a7c28f15 (diff) | |
download | ruby-af18eafc44bb3bb6aff78f244a67b807500e3e9f.tar.gz |
test_syntax.rb: try all
* test/ruby/test_syntax.rb (assert_dedented_heredoc): try all
terminators regardless failures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index b7f001e2f0..70b3934d4f 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -501,10 +501,13 @@ e" end def assert_dedented_heredoc(expect, result, mesg = "") - %w[eos "eos" 'eos' `eos`].each do |eos| - assert_equal(eval("<<-#{eos}\n#{expect}eos\n"), - eval("<<~#{eos}\n#{result}eos\n"), - message(mesg) {"with #{eos}"}) + all_assertions(mesg) do |a| + %w[eos "eos" 'eos' `eos`].each do |eos| + a.for(eos) do + assert_equal(eval("<<-#{eos}\n#{expect}eos\n"), + eval("<<~#{eos}\n#{result}eos\n")) + end + end end end |