1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2007-12-22 05:19:38 +00:00
parent e6f67598e9
commit 34ff55e82a
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sat Dec 22 14:18:45 2007 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_float.rb, test_sprintf.rb: fix test place.
Sat Dec 22 14:17:02 2007 Koichi Sasada <ko1@atdot.net>
* bootstraptest/test_objectspace.rb: skip flozen string.

View file

@ -13,8 +13,6 @@ class TestFloat < Test::Unit::TestCase
assert((13.4 % 1 - 0.4).abs < 0.0001)
assert_equal(36893488147419111424,
36893488147419107329.0.to_i)
assert_equal("36893488147419111424",
sprintf("%20.0f", 36893488147419107329.0))
end
def nan_test(x,y)

View file

@ -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