1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/date
Jeremy Evans 4e40ca301c
[ruby/date] Check for numeric arguments in constructors
Previously, the type of these arguments were not checked, leading to
NoMethodErrors in some cases, and TypeErrors in other cases, but not
showing what field was having the problems.  This change makes it so
the field with the problem is included in the error message.

For the valid_*? methods, this changes them to return false if one
of the arguments that should be numeric is not.

Fixes Ruby Bug 11935
Fixes Ruby Misc 15298

a2f4b665f8
2019-10-24 18:39:04 +09:00
..
test_date.rb
test_date_arith.rb
test_date_attr.rb
test_date_compat.rb
test_date_conv.rb
test_date_marshal.rb
test_date_new.rb [ruby/date] Check for numeric arguments in constructors 2019-10-24 18:39:04 +09:00
test_date_parse.rb
test_date_strftime.rb
test_date_strptime.rb
test_switch_hitter.rb