ruby-changes:18963
From: tadf <ko1@a...>
Date: Tue, 1 Mar 2011 19:52:31 +0900 (JST)
Subject: [ruby-changes:18963] Ruby:r30997 (trunk): * test/date/{test_date.rb,test_date_attr.rb}:
tadf 2011-03-01 19:48:23 +0900 (Tue, 01 Mar 2011) New Revision: 30997 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30997 Log: * test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280] Modified files: trunk/ChangeLog trunk/test/date/test_date.rb trunk/test/date/test_date_attr.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30996) +++ ChangeLog (revision 30997) @@ -1,3 +1,7 @@ +Tue Mar 1 19:46:19 2011 Tadayoshi Funaba <tadf@d...> + + * test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280] + Tue Mar 1 18:40:38 2011 Ryan Davis <ryan@YPCMC09457> * lib/rubygems*: Import rubygems 1.6.0 (released version @ 58d8a0b9) Index: test/date/test_date_attr.rb =================================================================== --- test/date/test_date_attr.rb (revision 30996) +++ test/date/test_date_attr.rb (revision 30997) @@ -8,6 +8,7 @@ datetime = DateTime.new(1965, 5, 23, 22, 31, 59) [date, datetime].each_with_index do |d, i| +=begin if i == 0 assert_match(/\#<Date\d?: 1965-05-23 \(4877807\/2,0,2299161\)>/, d.inspect) @@ -15,6 +16,7 @@ assert_match(/\#<DateTime\d?: 1965-05-23T22:31:59\+00:00 \(210721343519\/86400,0,2299161\)>/, d.inspect) end +=end if i == 0 assert_equal('1965-05-23', d.to_s) Index: test/date/test_date.rb =================================================================== --- test/date/test_date.rb (revision 30996) +++ test/date/test_date.rb (revision 30997) @@ -41,9 +41,9 @@ assert_instance_of(DateSub, DateSub.today) assert_instance_of(DateTimeSub, DateTimeSub.now) - assert_equal('#<DateSub: -4712-01-01 (-1/2,0,2299161)>', d.inspect) +# assert_equal('#<DateSub: -4712-01-01 (-1/2,0,2299161)>', d.inspect) assert_equal('-4712-01-01', d.to_s) - assert_equal('#<DateTimeSub: -4712-01-01T00:00:00+00:00 (-1/2,0,2299161)>', dt.inspect) +# assert_equal('#<DateTimeSub: -4712-01-01T00:00:00+00:00 (-1/2,0,2299161)>', dt.inspect) assert_equal('-4712-01-01T00:00:00+00:00', dt.to_s) d2 = d + 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/