Skip to content

Fixes #6428: Date._strptime raises Java exception on invalid argument#6429

Merged
kares merged 1 commit intojruby:masterfrom
MariuszCwikla:strptime_exception
Oct 7, 2020
Merged

Fixes #6428: Date._strptime raises Java exception on invalid argument#6429
kares merged 1 commit intojruby:masterfrom
MariuszCwikla:strptime_exception

Conversation

@MariuszCwikla
Copy link
Contributor

Fixes #6428

Copy link
Member

@kares kares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 except we should move tests

assert_raise(ArgumentError) { Time.strptime('+09:00', '%z') } # [ruby-core:62351] by matz.
end

def test_strptime_type_error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a bit confusing but the MRI suite is owner and imported from Ruby itself.
thus these could get lost easily on the next import, preferably use Ruby Specs under spec/ruby (maybe there is one - it's just tagged to be skipped) or simply move this to test/jruby/test_time.rb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will do. Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, moved to test/jruby/test_time.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date._strptime raises Java exception on invalid argument

3 participants