From 46fc8d78a5d23d3c9a24e1bcc3c5cde4bce888de Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 20 Sep 2020 23:23:13 +0900 Subject: [ruby/set] Resurrect support for Ruby 2.x In Ruby 2.x, initialize_copy does not take a freeze option. https://github.com/ruby/set/commit/3da6c309df --- test/test_set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_set.rb b/test/test_set.rb index 86f860222c..acb1cebe16 100644 --- a/test/test_set.rb +++ b/test/test_set.rb @@ -739,7 +739,7 @@ class TC_Set < Test::Unit::TestCase set2.add 5 assert_equal Set[1,2,3,5], set2 assert_equal Set[1,2,3], set1 - end + end if Kernel.instance_method(:initialize_clone).arity != 1 def test_inspect set1 = Set[1, 2] -- cgit v1.2.3