From e97cc464605a5d6c9417bb449f27b36ceeb3e840 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 31 Jan 2018 04:02:17 +0000 Subject: trick ruby-mode.el by heredocs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io_m17n.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_io_m17n.rb') diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 8ba34845fa..8dfa5d5500 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -2121,12 +2121,14 @@ EOT end def test_bom_too_long_utfname - assert_separately([], <<-'end;') # do + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + begin; assert_warn(/Unsupported encoding/) { open(IO::NULL, "r:bom|utf-" + "x" * 10000) {} } end; - assert_separately([], <<-'end;') # do + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + begin; assert_warn(/Unsupported encoding/) { open(IO::NULL, encoding: "bom|utf-" + "x" * 10000) {} } -- cgit v1.2.3