mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user