From 34ff55e82a5b8cca1ecf43118926fc66c7223e9d Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 22 Dec 2007 05:19:38 +0000 Subject: * test/ruby/test_float.rb, test_sprintf.rb: fix test place. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_sprintf.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby/test_sprintf.rb') diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb index 7d6cab76f1..20c3581e2a 100644 --- a/test/ruby/test_sprintf.rb +++ b/test/ruby/test_sprintf.rb @@ -174,4 +174,9 @@ class TestSprintf < Test::Unit::TestCase assert_raise(ArgumentError, "[ruby-core:11573]") {sprintf("%.25555555555555555555555555555555555555s", "hello")} end + + def test_float + assert_equal("36893488147419111424", + sprintf("%20.0f", 36893488147419107329.0)) + end end -- cgit v1.2.3