summaryrefslogtreecommitdiffhomepage
path: root/test/t/float.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-17 00:16:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-17 00:16:01 +0900
commit3687e1f97b8a3fd058791d30f5d6f58285a627c6 (patch)
tree95c83ace18e45d610145fa200406b1369a5fbe97 /test/t/float.rb
parent55c1942b43b1e62956e6ce1798dc10fe742d617c (diff)
parent0d82ada9229cb01279e087246fcd1bcb4d5ddd29 (diff)
downloadmruby-3687e1f97b8a3fd058791d30f5d6f58285a627c6.tar.gz
mruby-3687e1f97b8a3fd058791d30f5d6f58285a627c6.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test/t/float.rb')
-rw-r--r--test/t/float.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/t/float.rb b/test/t/float.rb
index b50b1e175..c817e01da 100644
--- a/test/t/float.rb
+++ b/test/t/float.rb
@@ -15,6 +15,9 @@ assert('Float#+', '15.2.9.3.1') do
assert_float(3.123456789, a)
assert_float(4.123456789, b)
+
+ assert_raise(TypeError){ 0.0+nil }
+ assert_raise(TypeError){ 1.0+nil }
end
assert('Float#-', '15.2.9.3.2') do