summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_float.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r--test/ruby/test_float.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index 27645c3db..4fa549ce5 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -83,6 +83,7 @@ class TestFloat < Test::Unit::TestCase
assert_raise(ArgumentError){Float("1e")}
assert_raise(ArgumentError){Float("1__1")}
# add expected behaviour here.
+ assert_equal(10, Float("1_0"))
end
def test_divmod