summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-10-06 16:50:50 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-10-06 16:50:50 -0700
commitbec41aa80d5977c3f9315e3761f4d364d311960d (patch)
treeca9da1b7aa915cbe21837a80ef20269c031e0944 /test
parent4d48bff3590440b1bc35daf511efb216258b87d0 (diff)
downloadpsych-bec41aa80d5977c3f9315e3761f4d364d311960d.zip
emitting dates
Diffstat (limited to 'test')
-rw-r--r--test/visitors/test_yast_builder.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb
index f5423e9..2f6e443 100644
--- a/test/visitors/test_yast_builder.rb
+++ b/test/visitors/test_yast_builder.rb
@@ -8,6 +8,11 @@ module Psych
@v = Visitors::YASTBuilder.new
end
+ def test_date
+ date = Date.strptime('2002-12-14', '%Y-%m-%d')
+ assert_round_trip date
+ end
+
def test_rational
assert_round_trip Rational(1,2)
end