diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-21 12:25:03 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-21 12:25:03 +0000 |
commit | 559c025a22e7a1df0182c505017eec7cb3d2228e (patch) | |
tree | 94a871cf9f9b59e144a2d31b44cd0d4c884c98f4 /test/date | |
parent | 42cb637942628ab87119482e4bcf372cdc19f6d6 (diff) | |
download | ruby-559c025a22e7a1df0182c505017eec7cb3d2228e.tar.gz |
* ext/date/date_{core,parse}.c: moved nearly all core code from ext/date/lib.
* ext/date/lib/{date,date/format}.rb: removed nearly all code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date')
-rw-r--r-- | test/date/test_date_base.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/date/test_date_base.rb b/test/date/test_date_base.rb index 9f76bac8a3..1f3d8c0a55 100644 --- a/test/date/test_date_base.rb +++ b/test/date/test_date_base.rb @@ -184,18 +184,21 @@ class TestDateBase < Test::Unit::TestCase end def test_mjd + skip unless Date.respond_to?(:mjd_to_jd, true) jd = Date.__send__(:mjd_to_jd, 51321) mjd = Date.__send__(:jd_to_mjd, jd) assert_equal(51321, mjd) end def test_ld + skip unless Date.respond_to?(:ld_to_jd, true) jd = Date.__send__(:ld_to_jd, 152162) ld = Date.__send__(:jd_to_ld, jd) assert_equal(152162, ld) end def test_wday + skip unless Date.respond_to?(:jd_to_wday, true) assert_equal(4, Date.__send__(:jd_to_wday, 3)) assert_equal(3, Date.__send__(:jd_to_wday, 2)) assert_equal(2, Date.__send__(:jd_to_wday, 1)) |