summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_float.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index 2faf1b0456..92c2062948 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -63,6 +63,10 @@ class TestFloat < Test::Unit::TestCase
assert(a.abs < Float::EPSILON)
a = Float("0." + "00" * Float::DIG + "1")
assert(a != 0.0)
+ a = Float("+0." + "00" * Float::DIG + "1")
+ assert(a != 0.0)
+ a = Float("-0." + "00" * Float::DIG + "1")
+ assert(a != 0.0)
# add expected behaviour here.
end
end