mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
trick ruby-mode.el by heredocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1b7bf1047
commit
e97cc46460
4 changed files with 15 additions and 7 deletions
|
@ -659,7 +659,9 @@ CODE
|
|||
assert_raise(ArgumentError) {S("mypassword".encode(enc)).crypt(S("aa"))}
|
||||
end
|
||||
|
||||
@cls == String and assert_no_memory_leak([], 's = ""', <<~'end;') # do
|
||||
@cls == String and
|
||||
assert_no_memory_leak([], 's = ""', "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||
begin;
|
||||
1000.times { s.crypt(-"..").clear }
|
||||
end;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue