1
0
Fork 0
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:
Yusuke Endoh 2021-03-08 17:04:27 +09:00
parent 7de349bb49
commit d10b535806

View file

@ -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;