mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25a9b62d45
commit
b8bc68113a
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Mar 1 19:46:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* 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)
|
||||
|
|
|
@ -41,9 +41,9 @@ class TestDate < Test::Unit::TestCase
|
|||
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
|
||||
|
|
|
@ -8,6 +8,7 @@ class TestDateAttr < Test::Unit::TestCase
|
|||
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 @@ class TestDateAttr < Test::Unit::TestCase
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue