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