From bec41aa80d5977c3f9315e3761f4d364d311960d Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 6 Oct 2009 16:50:50 -0700 Subject: emitting dates --- test/visitors/test_yast_builder.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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 -- cgit v1.2.3