summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-01-24 21:40:25 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-01-24 21:42:25 +0900
commit3ff56a8e55d661900a96c897c7a04bdf3a7e3839 (patch)
tree17256621afa583c96892831691149b9f2c5118ee /mrbgems/mruby-time
parentf8ab3c1eebe45c76290cf56ede672a292b9e7980 (diff)
downloadmruby-3ff56a8e55d661900a96c897c7a04bdf3a7e3839.tar.gz
mruby-3ff56a8e55d661900a96c897c7a04bdf3a7e3839.zip
`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.
Diffstat (limited to 'mrbgems/mruby-time')
-rw-r--r--mrbgems/mruby-time/test/time.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/mrbgems/mruby-time/test/time.rb b/mrbgems/mruby-time/test/time.rb
index 4e7b94a7c..54c446ca3 100644
--- a/mrbgems/mruby-time/test/time.rb
+++ b/mrbgems/mruby-time/test/time.rb
@@ -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 \ No newline at end of file
+end