summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_math.rb
Commit message (Collapse)AuthorAgeFilesLines
* add assertion message.akr2009-10-041-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_gamma): get rid of direct comparison between toonobu2009-09-021-0/+11
| | | | | | | big double and integer, with gcc on x86_64. [ruby-core:25257] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_log): should check argc.tadf2008-09-211-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_atanh): raise EDOM on FreeBSD when atanh(1).naruse2008-07-281-0/+4
| | | | | | | | | | | | * math.c (math_log): ditto. * math.c (math_log2): ditto. * math.c (math_log10): ditto. * test/ruby/test_math.rb: test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/lgamma_r.c (loggamma): return 0 for 1 and 2.akr2008-03-061-1/+2
| | | | | | | | * test/ruby/test_math.rb: accept errors by functions under missing/. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_math.rb: actual-expected argument ordering formatz2008-02-141-25/+25
| | | | | | | test_math.rb fixed. a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp> in [ruby-dev:33770]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_math.rb: add tests for Math#gamma, Math#lgamma andmame2008-02-091-1/+62
| | | | | | | Math#cbrt, and use assert_in_delta instead of assert. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_struct.rb: add tests to achieve over 90% testmame2008-01-231-6/+167
| | | | | | | | | coverage of struct.c. * test/ruby/test_sprintf.rb: ditto for sprintf.c. * test/ruby/test_math.rb: ditto for math.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/*: should not depend on $KCODE.nahi2004-02-181-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order, #permute, #parse): allow annobu2003-09-051-3/+3
| | | | | | | | | | array as argument. * test/ruby/test_*.rb: moved invariants to left side in assert_equal, and use assert_nil, assert_raises and so on. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'nahi2003-09-051-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: tests for ruby itself.nahi2003-09-041-0/+14
* test/ruby/test_*.rb: split sample/test.rb into 28 test/unit testcases. some tests could not be translates... search '!!' mark to see it. * test/csv/test_csv.rb: should require 'csv', not '../lib/csv'. test runner should set load path correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e