summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorXuejie Xiao <[email protected]>2012-11-19 15:19:52 -0500
committerXuejie Xiao <[email protected]>2012-11-19 15:19:52 -0500
commit358f0cb5d8cb822644e29bad520b44d63c0d5666 (patch)
treed23ab62f6770b1b122aec9327610d5642c38a360 /test
parentf7dd27a92827af91aa52c78bfbf96d5f7e73c4bd (diff)
downloadmruby-358f0cb5d8cb822644e29bad520b44d63c0d5666.tar.gz
mruby-358f0cb5d8cb822644e29bad520b44d63c0d5666.zip
Restore accidentally deleted erfc(1) test
Diffstat (limited to 'test')
-rw-r--r--test/t/math.rb4
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