Skip to content

Commit c543aaa

Browse files
committed
Ensure Integer::GMP_VERSION exists
Do the same in ruby/ruby#10875 for debian packaging Gbp-Pq: Name Ensure-Integer-GMP_VERSION-exists.patch
1 parent 93183f1 commit c543aaa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ruby/test_bignum.rb

+4
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,10 @@ def test_even
634634
assert_equal(true, BIGNUM_MIN.even?)
635635
end
636636

637+
def test_gmp_deb
638+
assert_kind_of(String, Integer::GMP_VERSION) # https://github.com/ruby/ruby/pull/10875
639+
end
640+
637641
def test_interrupt_during_to_s
638642
if defined?(Integer::GMP_VERSION)
639643
return # GMP doesn't support interrupt during an operation.

0 commit comments

Comments
 (0)