summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_fixnum.rb
Commit message (Collapse)AuthorAgeFilesLines
* * numeric.c (fix_pow): integer power calculation: 0**n => 0, matz2007-07-141-1/+1
| | | | | | | | | 1**n => 1, -1**n => 1 (n: even) / -1 (n: odd). * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests.akr2007-07-131-0/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check (-0x4000000000000000)/(-1) too.akr2007-07-131-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31210].akr2007-07-131-0/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for [ruby-dev:31189] and [ruby-dev:31190].akr2007-07-121-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_pow): fix previous nubu's commit.usa2007-07-051-0/+26
* test/ruby/test_fixnum.rb: new test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e