mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c: provides predicate real? instead of scalar?.
* complex.c: follows the above change. * lib/cmath.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9d3781de0
commit
acde7364f7
7 changed files with 47 additions and 38 deletions
|
@ -72,8 +72,8 @@ class TestNumeric < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_scalar_p
|
||||
assert(Numeric.new.scalar?)
|
||||
def test_real_p
|
||||
assert(Numeric.new.real?)
|
||||
end
|
||||
|
||||
def test_integer_p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue