-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-organize and enhance specs for Regex
#12788
Re-organize and enhance specs for Regex
#12788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
@@ -40,17 +44,17 @@ describe "Regex" do | |||
$~.group_size.should eq(0) | |||
end | |||
|
|||
it "matches ignore case" do | |||
it "ignore case" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be "case sensitive" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is derived from the option name: Options::IGNORE_CASE
This patch is a big overhaul of
Regex
specs, improving both the structure of the tests as well as adding some specs for previously untested behaviour.The changes affect nearly all lines, but following the individual commits should make it easy to understand each set of changes. The first commit (cba37be) moves stuff around, but does not change any spec code by itself.
See #12789 for similar changes for
Regex::MatchData
specs.