summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-11-21 17:01:09 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-11-21 17:01:09 +0900
commitae6a7e5aae115a417fd764fd3160b7df48df9631 (patch)
tree02c4bb731078ef2f26d90706cb220c67d73fe939 /test
parent76f0e755e92d845b4b4bac1d77aa5eeb42bbbec9 (diff)
parent8894cbe00f6202e2088000d2a3e7553fa7730bad (diff)
downloadmruby-ae6a7e5aae115a417fd764fd3160b7df48df9631.tar.gz
mruby-ae6a7e5aae115a417fd764fd3160b7df48df9631.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test')
-rw-r--r--test/t/math.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/math.rb b/test/t/math.rb
index d71e44fc9..780b805d2 100644
--- a/test/t/math.rb
+++ b/test/t/math.rb
@@ -113,5 +113,13 @@ if Object.const_defined?(:Math)
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
+
+ assert('Math.erfc -1') do
+ check_float(Math.erfc(-1), 1.8427007929497148)
+ end
end