aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_float.rb2
-rw-r--r--test/ruby/test_sprintf.rb5
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0431c120b3..9223cdf61a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index f3224fface..0b06bd9d4d 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -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)
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