summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-03-08 17:04:27 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-03-08 17:04:27 +0900
commitd10b535806227d24a3f8f5c7f425be3a39c2ac74 (patch)
tree8859ef1546e8d7c213552a0e45897290347e9e6b /test
parent7de349bb4996b0b8261f3af6734dd268160de96d (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')
-rw-r--r--test/ruby/test_string.rb1
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;