summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-11-21 15:58:52 +0800
committerDaniel Bovensiepen <[email protected]>2012-11-21 15:58:52 +0800
commit754c853300b8824d1b57e40e86280164bfd1a4dd (patch)
treee8140d06028152be25725fb6dc3cded483139aa4 /test
parented92a86212c2428e64d385b2b89f1dcfcec265e6 (diff)
parent8894cbe00f6202e2088000d2a3e7553fa7730bad (diff)
downloadmruby-754c853300b8824d1b57e40e86280164bfd1a4dd.tar.gz
mruby-754c853300b8824d1b57e40e86280164bfd1a4dd.zip
Merge remote-tracking branch 'upstream/master' into mrbgems
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