[前][次][番号順一覧][スレッド一覧]

ruby-changes:65419

From: Yusuke <ko1@a...>
Date: Mon, 8 Mar 2021 17:06:51 +0900 (JST)
Subject: [ruby-changes:65419] d10b535806 (master): test/ruby/test_string.rb: make GitHub syntax-highlight correctly

https://git.ruby-lang.org/ruby.git/commit/?id=d10b535806

From d10b535806227d24a3f8f5c7f425be3a39c2ac74 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Mon, 8 Mar 2021 17:04:27 +0900
Subject: 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
---
 test/ruby/test_string.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 29ad98b..e1a957e 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -695,6 +695,7 @@ CODE https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L695
 
     @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;
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]