diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-31 04:02:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-31 04:02:17 +0000 |
commit | e97cc464605a5d6c9417bb449f27b36ceeb3e840 (patch) | |
tree | 49c3dcfa9cec9daa29e84006814aa2844f255d6b /test/ruby/test_io.rb | |
parent | f1b7bf10471d01e3a073c8b9ff8aba3478e30543 (diff) | |
download | ruby-e97cc464605a5d6c9417bb449f27b36ceeb3e840.tar.gz |
trick ruby-mode.el by heredocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 877f95658d..0b26608a0e 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2535,7 +2535,8 @@ End assert_in_out_err([], "$> = $stderr\nputs 'foo'", [], %w(foo)) - assert_separately(%w[-Eutf-8], <<-"end;") # do + assert_separately(%w[-Eutf-8], "#{<<~"begin;"}\n#{<<~"end;"}") + begin; alias $\u{6a19 6e96 51fa 529b} $stdout x = eval("class X\u{307b 3052}; self; end".encode("euc-jp")) assert_raise_with_message(TypeError, /\\$\u{6a19 6e96 51fa 529b} must.*, X\u{307b 3052} given/) do |