mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_string.rb: make GitHub syntax-highlight correctly
It looks like GitHub syntax-highlighting does not support an empty heredoc. This change adds a newline to make GitHub can handle the syntax appropriately. https://bugs.ruby-lang.org/issues/17662
This commit is contained in:
parent
7de349bb49
commit
d10b535806
1 changed files with 1 additions and 0 deletions
|
@ -695,6 +695,7 @@ CODE
|
|||
|
||||
@cls == String and
|
||||
assert_no_memory_leak([], "s = ''; salt_proc = proc{#{(crypt_supports_des_crypt? ? '..' : good_salt).inspect}}", "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||
|
||||
begin;
|
||||
1000.times { s.crypt(-salt_proc.call).clear }
|
||||
end;
|
||||
|
|
Loading…
Reference in a new issue