Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

eregon
Copy link
Member

@eregon eregon commented Sep 13, 2025

No description provided.

@eregon eregon changed the title [WIP] Make Regexp immutable (all Regexp are frozen, not just literal … [WIP] Make Regexp immutable (all Regexp are frozen, not just literal regexps) Sep 13, 2025
Comment on lines -379 to +387
Regexp.send(@method, "\�").should == /#{"�"}/
Regexp.send(@method, "\�").should == /#{"�"}/
Copy link
Member

Choose a reason for hiding this comment

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

This backslash will be dropped in the parsers, so this wouldn't make sense as a test for the Regexp methods.

it "raises a RuntimeError if the second argument is a Symbol" do
it "raises a RuntimeError if the first argument is a Symbol" do
Copy link
Member

Choose a reason for hiding this comment

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

Just a typo fix unrelated to this feature?

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.

2 participants