From bd741ee16a414d15cc7be250c70f0cb01e742805 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 1 Dec 2007 17:24:13 +0000 Subject: (test_time_now_cycle): cut off under micro second. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/yaml/test_yaml.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'test/yaml/test_yaml.rb') diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index 1aebfd30cc..74a2fa851e 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -34,14 +34,6 @@ 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 @@ -1198,6 +1190,7 @@ EOY # require 'yaml' t = Time.now + t = Time.at(t.tv_sec, t.tv_usec) 5.times do assert_cycle(t) end -- cgit v1.2.3