summaryrefslogtreecommitdiff
path: root/test/date
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 02:23:52 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 02:23:52 +0000
commit6eda5562f012483853bb409f0a6804be10f4b3b9 (patch)
treef81988bfba1a5720d1859855e89ccc452087c013 /test/date
parent2a83260a3932f584b5cd3fccd879e562ab4c6737 (diff)
merge revision(s) 45520: [Backport #9706]
* ext/date/date_core.c (d_lite_cmp): should compare with #<. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date')
-rw-r--r--test/date/test_switch_hitter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb
index f18d76b393..08e23015dc 100644
--- a/test/date/test_switch_hitter.rb
+++ b/test/date/test_switch_hitter.rb
@@ -312,6 +312,8 @@ class TestSH < Test::Unit::TestCase
assert_equal(-1, Date.new(2001,2,3) <=> Rational('4903888/2'))
assert_equal(0, Date.new(2001,2,3) <=> Rational('4903887/2'))
assert_equal(1, Date.new(2001,2,3) <=> Rational('4903886/2'))
+
+ assert_equal(-1, Date.new(-4713,11,1,Date::GREGORIAN) <=> Date.new(-4713,12,1,Date::GREGORIAN))
end
def test_eqeqeq