diff options
author | Yusuke Endoh <[email protected]> | 2021-03-08 17:04:27 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-03-08 17:04:27 +0900 |
commit | d10b535806227d24a3f8f5c7f425be3a39c2ac74 (patch) | |
tree | 8859ef1546e8d7c213552a0e45897290347e9e6b /test/ruby/test_string.rb | |
parent | 7de349bb4996b0b8261f3af6734dd268160de96d (diff) |
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
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 29ad98beaf..e1a957eebf 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -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; |