summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-09 10:59:54 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-09 10:59:54 +0000
commit1d0252d597a4c06b81353459374e0db8befa0bfb (patch)
tree116fea4f0b29309c27c05faaf32313412022acca /test
parentad20a9e01ae998e672f4b2c87b100199066eaf17 (diff)
* test/ruby/test_float.rb (TestFloat#test_sleep_with_Float): add a
test. see [ruby-core:23282] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_float.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index d8255df17b..96fd354aba 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -421,4 +421,9 @@ class TestFloat < Test::Unit::TestCase
end
end
+ def test_sleep_with_Float
+ assert_nothing_raised("[ruby-core:23282]") do
+ sleep(0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1)
+ end
+ end
end