summaryrefslogtreecommitdiff
path: root/test/psych/visitors/test_to_ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/visitors/test_to_ruby.rb')
-rw-r--r--test/psych/visitors/test_to_ruby.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb
index eb2841d9d0..1a4d3194f3 100644
--- a/test/psych/visitors/test_to_ruby.rb
+++ b/test/psych/visitors/test_to_ruby.rb
@@ -113,7 +113,7 @@ description:
def test_time
now = Time.now
formatted = now.strftime("%Y-%m-%d %H:%M:%S") +
- ".%06d %+.2d:00" % [now.nsec, now.gmt_offset / 3600]
+ ".%09d %+.2d:00" % [now.nsec, now.gmt_offset / 3600]
assert_equal now, Nodes::Scalar.new(formatted).to_ruby
end
@@ -121,7 +121,7 @@ description:
def test_time_utc
now = Time.now.utc
formatted = now.strftime("%Y-%m-%d %H:%M:%S") +
- ".%06dZ" % [now.nsec]
+ ".%09dZ" % [now.nsec]
assert_equal now, Nodes::Scalar.new(formatted).to_ruby
end
@@ -129,7 +129,7 @@ description:
def test_time_utc_no_z
now = Time.now.utc
formatted = now.strftime("%Y-%m-%d %H:%M:%S") +
- ".%06d" % [now.nsec]
+ ".%09d" % [now.nsec]
assert_equal now, Nodes::Scalar.new(formatted).to_ruby
end