summaryrefslogtreecommitdiff
path: root/jni/ruby/test/-ext-/bignum/test_bigzero.rb
blob: f75c4590b86fd6dc3d6ae1b704bfac30b9d96c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'test/unit'
require "-test-/bignum"

class TestBignum < Test::Unit::TestCase
  class TestBigZero < Test::Unit::TestCase
    def test_equal_0
      bug8204 = '[ruby-core:53893] [Bug #8204]'
      (0..10).each do |i|
        assert_equal(0, Bug::Bignum.zero(i), "#{bug8204} Bignum.zero(#{i})")
      end
    end
  end
end