summaryrefslogtreecommitdiffstats
path: root/test/yaml
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/yaml
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/yaml')
-rw-r--r--test/yaml/test_yaml.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb
index 77602c112..1aebfd30c 100644
--- a/test/yaml/test_yaml.rb
+++ b/test/yaml/test_yaml.rb
@@ -34,6 +34,14 @@ class YAML_Unit_Tests < Test::Unit::TestCase
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 @@ EOY
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__