ruby-changes:2574
From: ko1@a...
Date: 1 Dec 2007 14:43:17 +0900
Subject: [ruby-changes:2574] ko1 - Ruby:r14065 (trunk): * bootstraptest/test_knownbug.rb: move fixed bugs.
ko1 2007-12-01 14:43:06 +0900 (Sat, 01 Dec 2007)
New Revision: 14065
Modified files:
trunk/ChangeLog
trunk/bootstraptest/test_knownbug.rb
trunk/test/ruby/test_sprintf.rb
trunk/test/yaml/test_yaml.rb
Log:
* bootstraptest/test_knownbug.rb: move fixed bugs.
* test/ruby/test_sprintf.rb: ditto.
* test/yaml/test_yaml.rb: ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14065&r2=14064
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/yaml/test_yaml.rb?r1=14065&r2=14064
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_sprintf.rb?r1=14065&r2=14064
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14065&r2=14064
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14064)
+++ ChangeLog (revision 14065)
@@ -1,3 +1,11 @@
+Sat Dec 1 14:36:05 2007 Koichi Sasada <ko1@a...>
+
+ * bootstraptest/test_knownbug.rb: move fixed bugs.
+
+ * test/ruby/test_sprintf.rb: ditto.
+
+ * test/yaml/test_yaml.rb: ditto.
+
Sat Dec 1 13:24:47 2007 Koichi Sasada <ko1@a...>
* insnhelper.ci (vm_yield_with_cfunc): fix to passing argc on third
Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb (revision 14064)
+++ bootstraptest/test_knownbug.rb (revision 14065)
@@ -3,17 +3,3 @@
# So all tests will cause failure.
#
-$:.unshift File.join(File.dirname(__FILE__), "../.ext/#{RUBY_PLATFORM}")
-assert_normal_exit %q{
- STDERR.reopen(STDOUT)
- require 'yaml'
- YAML.load("2000-01-01 00:00:00.#{"0"*1000} +00:00\n")
-}, '[ruby-core:13735]'
-
-assert_equal '..f00000000', %q{
- sprintf("%x", -2**32)
-}, '[ruby-dev:32351]'
-
-assert_equal "..101111111111111111111111111111111", %q{
- sprintf("%b", -2147483649)
-}, '[ruby-dev:32365]'
Index: test/ruby/test_sprintf.rb
===================================================================
--- test/ruby/test_sprintf.rb (revision 14064)
+++ test/ruby/test_sprintf.rb (revision 14065)
@@ -141,6 +141,10 @@
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
Index: test/yaml/test_yaml.rb
===================================================================
--- test/yaml/test_yaml.rb (revision 14064)
+++ test/yaml/test_yaml.rb (revision 14065)
@@ -34,6 +34,14 @@
end
def assert_cycle( obj )
+ if Time === obj
+ x = YAML::load( obj.to_yaml )
+ y = obj
+ STDERR.puts [y.tv_sec, y.tv_usec, y.tv_nsec].inspect
+ STDERR.puts [x.tv_sec, x.tv_usec, x.tv_nsec].inspect
+ STDERR.puts [obj.<=>(x)]
+ STDERR.puts [obj.eql?(x)].inspect
+ end
assert_equal( obj, YAML::load( obj.to_yaml ) )
end
@@ -1280,6 +1288,11 @@
1000.times { |i| omap["key_#{i}"] = { "value" => i } }
raise "id collision in ordered map" if omap.to_yaml =~ /id\d+/
end
+
+ def test_normal_exit
+ YAML.load("2000-01-01 00:00:00.#{"0"*1000} +00:00\n")
+ # '[ruby-core:13735]'
+ end
end
if $0 == __FILE__
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml