Skip to content
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

S05-metasyntax/interpolating-closure.t line:28 reason: 'dunno' #3854

Open
p6rt opened this issue May 3, 2015 · 2 comments
Open

S05-metasyntax/interpolating-closure.t line:28 reason: 'dunno' #3854

p6rt opened this issue May 3, 2015 · 2 comments
Labels
bogustest regex Regular expressions, pattern matching, user-defined grammars, tokens and rules

Comments

@p6rt
Copy link

p6rt commented May 3, 2015

Migrated from rt.perl.org#124527 (status was 'open')

Searchable as RT124527$

@p6rt
Copy link
Author

p6rt commented Oct 21, 2017

From @smls

This look like a bogus test to me.

On the RHS of the ~~ operator, `$_` is bound to the LHS string "aaabccc".

`$var ??` evaluates the regex $var in boolean context, which causes it to match against this string.

Since there is no match, this causes the ternary operator to return the `rx{abc}` branch, which in turn matches at the current position in the outer regex.

So unless I'm missing something, it is wrong for the test to expect no match for the outer regex, and Rakudo already does the right thing.

What's the protocol for removing/changing tests in roast?

@p6rt
Copy link
Author

p6rt commented Oct 21, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added bogustest regex Regular expressions, pattern matching, user-defined grammars, tokens and rules labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bogustest regex Regular expressions, pattern matching, user-defined grammars, tokens and rules
Projects
None yet
Development

No branches or pull requests

1 participant