Sha256: b17d0d6a77e9f1cf5dffd7c3e3e83d140266d172b81a0bf6b25ac5f339eb678a
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
require 'test/unit' require 'facet/date/stamp' require 'facet/date/to_s' require 'facet/date/to_date' require 'facet/date/to_time' class TC_Date < Test::Unit::TestCase def setup @d = Date.new( 2005, 04, 20 ) end # stamp def test_stamp assert_equal( "2005-04-20", @d.stamp ) end # to_date def test_to_date assert_instance_of( ::Date, @d.to_date ) end # to_s def test_to_s assert_equal( "2005-04-20", @d.to_s ) end # to_time def test_to_time assert_instance_of( ::Time, @d.to_time ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | test/date/tc_date.rb |
facets-0.7.1 | test/date/tc_date.rb |
facets-0.7.2 | test/date/tc_date.rb |