mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
-test-/integer
* ext/-test-/integer/core_ext.c: move testutil/integer.c. * test/lib/-test-/integer.rb: extract implementation details from test/unit/assertions.rb. [Bug #12408] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
78c5ca7074
commit
006634b489
10 changed files with 29 additions and 31 deletions
14
test/lib/-test-/integer.rb
Normal file
14
test/lib/-test-/integer.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue