You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test
expressionString = "{(on X in {1,2,3}) p(X) | false}";
expected = parse("{ }");
evaluationTest();
in
testIntensionalSetEnumerationSingleRewriting()
started failing after I introduced contextual updating to the
Expression.replace method.
This happens because this makes the contextual constraint equal to "false" and
AbstractRewriter rewrites whatever expression under that context by "whatever".
Because that particular test involves a single rewriting (RewriteOnce), the
test stops and fails.
What strikes me as odd here is why AbstractRewriter has to rewrite the
expression under "false". At first this seems unnecessary and confusing. In
this particular example, the rewriter ScopedVariables is the one doing the
replacement, which is especially odd since this is just a module that should
not ever replace expressions.
I am creating this JIRA item to be a reference to place next to the commented
out test, and so that we can remember discussing this.
Original issue reported on code.google.com by [email protected] on 11 Apr 2013 at 12:21
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 11 Apr 2013 at 12:21The text was updated successfully, but these errors were encountered: