mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
|
||
|---|---|---|
| .. | ||
| 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 | ||
| test_date_parse.rb | ||
| test_date_strftime.rb | ||
| test_date_strptime.rb | ||
| test_switch_hitter.rb | ||