From bd52bed97be25e8f3344033ac01416349ec8be67 Mon Sep 17 00:00:00 2001 From: tadf Date: Sun, 1 Jul 2012 20:56:50 +0000 Subject: * ext/date/date_core.c: [ruby-core:46058]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/date/test_switch_hitter.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/date/test_switch_hitter.rb') diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb index 273474eb86..7f81ab7568 100644 --- a/test/date/test_switch_hitter.rb +++ b/test/date/test_switch_hitter.rb @@ -294,6 +294,8 @@ class TestSH < Test::Unit::TestCase assert_raise(Errno::ERANGE) do Date.new(1 << 10000).strftime('%Y') end + assert_equal('-3786825600', Date.new(1850).strftime('%s')) + assert_equal('-3786825600000', Date.new(1850).strftime('%Q')) end def test_cmp -- cgit v1.2.3