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

ruby-changes:66437

From: Yusuke <ko1@a...>
Date: Tue, 8 Jun 2021 08:13:45 +0900 (JST)
Subject: [ruby-changes:66437] 8c87efaa8a (master): [ruby/psych] Fix the test that does not work with libyaml-0.1.7

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

From 8c87efaa8a45166ed977294330c32a4b186b8e7b Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Mon, 7 Jun 2021 22:56:47 +0900
Subject: [ruby/psych] Fix the test that does not work with libyaml-0.1.7

https://github.com/ruby/psych/commit/542cf9754f
---
 test/psych/test_psych.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb
index bd271f2..1abd69c 100644
--- a/test/psych/test_psych.rb
+++ b/test/psych/test_psych.rb
@@ -424,7 +424,7 @@ eoyml https://github.com/ruby/ruby/blob/trunk/test/psych/test_psych.rb#L424
     end
     assert_equal "Tried to dump unspecified class: Symbol(:foo)", error.message
 
-    assert_equal "--- :foo\n", Psych.safe_dump(:foo, permitted_classes: [Symbol], permitted_symbols: [:foo])
+    assert_match(/\A--- :foo\n(?:\.\.\.\n)?\z/, Psych.safe_dump(:foo, permitted_classes: [Symbol], permitted_symbols: [:foo]))
   end
 
   def test_safe_dump_aliases
-- 
cgit v1.1


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

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