mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/date.rb (inspect): changed again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
417b288d07
commit
1537855833
4 changed files with 11 additions and 5 deletions
|
@ -9,10 +9,10 @@ class TestDateAttr < Test::Unit::TestCase
|
|||
|
||||
[date, datetime].each_with_index do |d, i|
|
||||
if i == 0
|
||||
assert_match(/\#<Date\d?: 4877807\/2,0,2299161>/,
|
||||
assert_match(/\#<Date\d?: 1965-05-23 \(4877807\/2,0,2299161\)>/,
|
||||
d.inspect)
|
||||
else
|
||||
assert_match(/\#<DateTime\d?: 210721343519\/86400,0,2299161>/,
|
||||
assert_match(/\#<DateTime\d?: 1965-05-23T22:31:59\+00:00 \(210721343519\/86400,0,2299161\)>/,
|
||||
d.inspect)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue