summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 05:43:06 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 05:43:06 +0000
commitb6e14d4b662327cb4d734e932f63bb88c5800198 (patch)
tree970253f669611bb040828ef6132145808bbc11ed /test/ruby
parentd09047674dadf481cc68c1bf01ce1bd5c611d1a3 (diff)
downloadruby-b6e14d4b662327cb4d734e932f63bb88c5800198.tar.gz
ruby-b6e14d4b662327cb4d734e932f63bb88c5800198.tar.xz
ruby-b6e14d4b662327cb4d734e932f63bb88c5800198.zip
* bootstraptest/test_knownbug.rb: move fixed bugs.
* test/ruby/test_sprintf.rb: ditto. * test/yaml/test_yaml.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_sprintf.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb
index 01b7b904e..7d6cab76f 100644
--- a/test/ruby/test_sprintf.rb
+++ b/test/ruby/test_sprintf.rb
@@ -141,6 +141,10 @@ class TestSprintf < Test::Unit::TestCase
assert_equal("-0000Inf", sprintf("% 08f", -inf))
assert_equal("-Inf ", sprintf("%- 08f", -inf))
assert_equal("-0000Inf", sprintf("%+ 08f", -inf))
+ assert_equal('..f00000000',
+ sprintf("%x", -2**32), '[ruby-dev:32351]')
+ assert_equal("..101111111111111111111111111111111",
+ sprintf("%b", -2147483649), '[ruby-dev:32365]')
end
def test_invalid