From 0a5d4d29e2404778d38410ba309443fa6e34ab03 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 29 Mar 2010 04:30:30 +0000 Subject: * test/psych/visitors/test_to_ruby.rb: switching to assert_in_delta * test/psych/visitors/test_yaml_tree.rb: switching to assert_in_delta git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/visitors/test_to_ruby.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/psych/visitors/test_to_ruby.rb') diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb index dc02fbc29d..87712f71ba 100644 --- a/test/psych/visitors/test_to_ruby.rb +++ b/test/psych/visitors/test_to_ruby.rb @@ -115,7 +115,7 @@ description: formatted = now.strftime("%Y-%m-%d %H:%M:%S") + ".%06d %+.2d:00" % [now.usec, now.gmt_offset / 3600] - assert_equal now, Nodes::Scalar.new(formatted).to_ruby + assert_in_delta now, Nodes::Scalar.new(formatted).to_ruby, 0.000001 end def test_time_utc @@ -123,7 +123,7 @@ description: formatted = now.strftime("%Y-%m-%d %H:%M:%S") + ".%06dZ" % [now.usec] - assert_equal now, Nodes::Scalar.new(formatted).to_ruby + assert_in_delta now, Nodes::Scalar.new(formatted).to_ruby, 0.000001 end def test_time_utc_no_z @@ -131,7 +131,7 @@ description: formatted = now.strftime("%Y-%m-%d %H:%M:%S") + ".%06d" % [now.usec] - assert_equal now, Nodes::Scalar.new(formatted).to_ruby + assert_in_delta now, Nodes::Scalar.new(formatted).to_ruby, 0.000001 end def test_date -- cgit v1.2.3