From fd549b229b0822198ddc847703194263a2186ed1 Mon Sep 17 00:00:00 2001 From: Sorah Fukumori Date: Fri, 31 May 2024 04:59:30 +0900 Subject: [PATCH] test_bignum: defined? returns String (#10880) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit didn't verify the test is working properly due to mistaken auto-merge… [Bug #20515] bug: https://bugs.ruby-lang.org/issues/20515 follow-up: 22e4eeda6561693367fc7a00b92b90f46b09cabd follow-up: https://github.com/ruby/ruby/pull/10875 --- test/ruby/test_bignum.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 0179a3c630..1858793952 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -824,7 +824,7 @@ class TestBignum < Test::Unit::TestCase def test_gmp_version if RbConfig::CONFIG.fetch('configure_args').include?("'--with-gmp'") - assert_equal(true, defined?(Integer::GMP_VERSION)) + assert_kind_of(String, Integer::GMP_VERSION) end end if ENV['GITHUB_WORKFLOW'] == 'Compilations' end