diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 17:24:13 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 17:24:13 +0000 |
| commit | cae93ffa282dbba2c4b0e2989729692994f74647 (patch) | |
| tree | 2e236e405ecdb19d6f5ad2927ed141e5808d2601 | |
| parent | 55a9410a62269ca714e764b859f5452342eaed5a (diff) | |
| download | ruby-cae93ffa282dbba2c4b0e2989729692994f74647.tar.gz ruby-cae93ffa282dbba2c4b0e2989729692994f74647.tar.xz ruby-cae93ffa282dbba2c4b0e2989729692994f74647.zip | |
(test_time_now_cycle): cut off under micro second.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | test/yaml/test_yaml.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index 1aebfd30c..74a2fa851 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 |
