-
Notifications
You must be signed in to change notification settings - Fork 747
Issue #4423 Chaining multiple collection with index #4480
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
Conversation
@dotnet-policy-service agree company=Relaxdays |
1 similar comment
@dotnet-policy-service agree company=Relaxdays |
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.
Thanks @crabstars !
I've pulled your changes and can see your new test passes with the changes and fails without. I've tried using the example from the original issue and it seems to still fail.
I think this is a good step forward though, and could merge on its own too. Did you want to pursue making the test from the originating issue work as well or would you like us to merge this as-is?
@stevenaw question is which assert fails. The second problem hasn't been fixed as is mentioned in the PR. I don't really have a strong opinion on the second problem though, since If the first problem still fails, that ain't good. |
Thank you for the responses. The first issue shouldn't be failing. I executed the NOT OK 1 from the reported problem, and it passed. @stevenaw, did it fail when you ran the test on that branch? If it succeeded, I believe we should proceed with the merge. |
@azygis if you want that
If you dont know why, I can try to explain it in more detail |
Thanks for clarifying @azygis @crabstars |
@azygis ah no, I understand. I don't even know why I reported the second not-ok. It's actually fine, just a brain freeze when I wrote that assert. |
Fixes #4423 for master
First Error: System.InvalidOperationException : Stack empty We've addressed the "Stack empty" error. The issue was with how certain operators were being processed. To fix it, we adjusted the LeftPrecedence when we encounter an IndexerOperator.
Explanation: in the function
ReduceOperatorStack
theAnd
will not be reduced with theIndexerOperator
. This will then fail inNUnit.Framework.Constraints.ConstraintBuilder.Resolve
for theBinaryOperator.Reduce
because it tries to pop the stack two times and will then fail.Second Error: Default indexer accepting arguments < 0 > was not found on SomeTests+SomeStuff We believe this isn't a real error. It looks like @azygis is trying to access a collection in a specific way. He's currently using a collection of SomeStuff, but it seems he should be using a collection that contains other collections of SomeStuff.