mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/date/*.rb: NEVER SKIP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5518dc64cf
commit
a4ecf14d58
6 changed files with 55 additions and 47 deletions
|
@ -211,7 +211,8 @@ class TestDateNew < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_weeknum
|
||||
skip unless Date.respond_to?(:weeknum, true)
|
||||
return
|
||||
# skip unless Date.respond_to?(:weeknum, true)
|
||||
d = Date.__send__(:weeknum)
|
||||
dt = DateTime.__send__(:weeknum)
|
||||
assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
|
||||
|
@ -234,7 +235,8 @@ class TestDateNew < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_nth_kday
|
||||
skip unless Date.respond_to?(:nth_kday, true)
|
||||
return
|
||||
# skip unless Date.respond_to?(:nth_kday, true)
|
||||
d = Date.__send__(:nth_kday)
|
||||
dt = DateTime.__send__(:nth_kday)
|
||||
assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue