diff options
| author | Xuejie Xiao <[email protected]> | 2012-11-19 15:19:52 -0500 |
|---|---|---|
| committer | Xuejie Xiao <[email protected]> | 2012-11-19 15:19:52 -0500 |
| commit | 358f0cb5d8cb822644e29bad520b44d63c0d5666 (patch) | |
| tree | d23ab62f6770b1b122aec9327610d5642c38a360 /test | |
| parent | f7dd27a92827af91aa52c78bfbf96d5f7e73c4bd (diff) | |
| download | mruby-358f0cb5d8cb822644e29bad520b44d63c0d5666.tar.gz mruby-358f0cb5d8cb822644e29bad520b44d63c0d5666.zip | |
Restore accidentally deleted erfc(1) test
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/math.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/t/math.rb b/test/t/math.rb index e582c0166..780b805d2 100644 --- a/test/t/math.rb +++ b/test/t/math.rb @@ -110,6 +110,10 @@ if Object.const_defined?(:Math) check_float(Math.erf(1), 0.842700792949715) end + assert('Math.erfc 1') do + check_float(Math.erfc(1), 0.157299207050285) + end + assert('Math.erf -1') do check_float(Math.erf(-1), -0.8427007929497148) end |
