Skip to content

Conversation

@paulk-asert
Copy link
Contributor

…e parser

@daniellansun
Copy link
Contributor

LGTM. Let's wait for the test result:
https://github.com/danielsun1106/groovy-parser/tree/GROOVY-10024

@daniellansun
Copy link
Contributor

The test result is green ;-)

//GROOVY-10024
def s1 = $/abc\/$
def s2 = $/def/$
assert s1.size() == 4 && s2.size() == 3
Copy link

@pbielicki pbielicki Apr 10, 2021

Choose a reason for hiding this comment

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

I’d assert expected values instead of size alone.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does

def s1 = $/Failing string\\/$

With double backslash at the end work (as per the Jira example)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The double backslash case works - I'll adjust the test accordingly and also with expected values.

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome as always Paul 😎👍

@asfgit asfgit closed this in 2b341fd Apr 10, 2021
@asfgit asfgit merged commit 2b341fd into apache:master Apr 10, 2021
asfgit pushed a commit that referenced this pull request Apr 10, 2021
@paulk-asert
Copy link
Contributor Author

Proposed PR merged.

@paulk-asert paulk-asert deleted the groovy10024 branch March 8, 2023 07:37
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.

5 participants