summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorSorah Fukumori <sorah@cookpad.com>2024-05-31 04:59:30 +0900
committerGitHub <noreply@github.com>2024-05-30 19:59:30 +0000
commitfd549b229b0822198ddc847703194263a2186ed1 (patch)
treeb764fa44a0e1fc23808293ac38676aaa68f586f4 /test/ruby
parent4e36abbab3a143842b2fbed8b00ba7ba6e45ac3f (diff)
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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_bignum.rb2
1 files changed, 1 insertions, 1 deletions
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