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

ruby-changes:66973

From: Hiroshi <ko1@a...>
Date: Thu, 29 Jul 2021 16:27:07 +0900 (JST)
Subject: [ruby-changes:66973] b3413914d9 (master): Partly picked from https://github.com/ruby/ostruct/commit/20d0b8c065392a22ba6d74194cf116755f38337f

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

From b3413914d949677fb975824b23d3e66dc0fa2fbe Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 29 Jul 2021 15:52:32 +0900
Subject: Partly picked from
 https://github.com/ruby/ostruct/commit/20d0b8c065392a22ba6d74194cf116755f38337f

---
 test/ostruct/test_ostruct.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index d857d5c..1fd7d87 100644
--- a/test/ostruct/test_ostruct.rb
+++ b/test/ostruct/test_ostruct.rb
@@ -375,7 +375,7 @@ class TC_OpenStruct < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ostruct/test_ostruct.rb#L375
 
     o = OpenStruct.new(table: {foo: 42})
     assert_equal({foo: 42}, YAML.safe_load(YAML.dump(o), permitted_classes: [Symbol, OpenStruct]).table)
-  end
+  end if RUBY_VERSION >= '2.6'
 
   def test_yaml
     h = {name: "John Smith", age: 70, pension: 300.42}
@@ -386,7 +386,7 @@ class TC_OpenStruct < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ostruct/test_ostruct.rb#L386
     assert_equal os1, os2
     assert_equal true, os1.eql?(os2)
     assert_equal 300.42, os2.pension
-  end
+  end if RUBY_VERSION >= '2.6'
 
   def test_marshal
     o = OpenStruct.new(name: "John Smith", age: 70, pension: 300.42)
-- 
cgit v1.1


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

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