Time.new(1969,12,31,23,59,59) may or may not faile; ref #3932

On some platform and timezone it is a valid time spec.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-01-24 21:40:25 +09:00
parent f8ab3c1eeb
commit 3ff56a8e55
+1 -5
View File
@@ -227,10 +227,6 @@ assert('2000 times 500us make a second') do
t.usec == 0
end
assert('Time.new with Dec 31 23:59:59 1969 raise ArgumentError') do
assert_raise(ArgumentError) {Time.new(1969, 12, 31, 23, 59, 59)}
end
assert('Time.gm with Dec 31 23:59:59 1969 raise ArgumentError') do
assert_raise(ArgumentError) {Time.gm(1969, 12, 31, 23, 59, 59)}
end
end