test_bignum: defined? returns String (#10880)

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
This commit is contained in:
Sorah Fukumori 2024-05-31 04:59:30 +09:00 committed by GitHub
parent 4e36abbab3
commit fd549b229b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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