mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
move duplicate assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
45e3b48be5
commit
b9fe5948f3
3 changed files with 14 additions and 22 deletions
14
test/-ext-/integer/test_integer.rb
Normal file
14
test/-ext-/integer/test_integer.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
|
||||
class TestInteger < Test::Unit::TestCase
|
||||
FIXNUM_MIN = Integer::FIXNUM_MIN
|
||||
FIXNUM_MAX = Integer::FIXNUM_MAX
|
||||
|
||||
def test_fixnum_range
|
||||
assert_bignum(FIXNUM_MIN-1)
|
||||
assert_fixnum(FIXNUM_MIN)
|
||||
assert_fixnum(FIXNUM_MAX)
|
||||
assert_bignum(FIXNUM_MAX+1)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue