diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-10-06 16:50:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-10-06 16:50:50 -0700 |
commit | bec41aa80d5977c3f9315e3761f4d364d311960d (patch) | |
tree | ca9da1b7aa915cbe21837a80ef20269c031e0944 /test | |
parent | 4d48bff3590440b1bc35daf511efb216258b87d0 (diff) | |
download | psych-bec41aa80d5977c3f9315e3761f4d364d311960d.zip |
emitting dates
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_yast_builder.rb | 5 |
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 |