mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
15 lines
318 B
Ruby
15 lines
318 B
Ruby
|
require 'test/unit'
|
||
|
require '-test-/integer.so'
|
||
|
|
||
|
module Test::Unit::Assertions
|
||
|
def assert_fixnum(v, msg=nil)
|
||
|
assert_instance_of(Integer, v, msg)
|
||
|
assert_predicate(v, :fixnum?, msg)
|
||
|
end
|
||
|
|
||
|
def assert_bignum(v, msg=nil)
|
||
|
assert_instance_of(Integer, v, msg)
|
||
|
assert_predicate(v, :bignum?, msg)
|
||
|
end
|
||
|
end
|