| Code-Review | +1 |
var resultB = _evaluateConstant(result, 'b');We've lost the assertion that A and B evaluate to the same value. In fact, we're not even checking what A evaluates to anymore. That seems like a regression.
At a minimum I'd prefer for the test to check the value of A as well a B.
Ideally, keep the line `expect(resultB, resultA);` as well. This would have the advantage that if a change were accidentally made that caused the two results to be different, the mistake would be caught, even if test expectations were automatically updated.
var resultB = _evaluateConstant(result, 'b');Same issue here.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
We've lost the assertion that A and B evaluate to the same value. In fact, we're not even checking what A evaluates to anymore. That seems like a regression.
At a minimum I'd prefer for the test to check the value of A as well a B.
Ideally, keep the line `expect(resultB, resultA);` as well. This would have the advantage that if a change were accidentally made that caused the two results to be different, the mistake would be caught, even if test expectations were automatically updated.
Done
var resultB = _evaluateConstant(result, 'b');Konstantin ShcheglovSame issue here.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CQ. Use assertDartObjectText() with raw multi-line string in more places.
Replace ad hoc assertions over DartObjectImpl with
assertDartObjectText() in constant evaluation and resolution tests. This
makes the expected constant value shape explicit, including invalid
results, variables, constructor invocations, type arguments, and
superclass fields, instead of checking only selected fields.
Use raw multi-line strings for these expectations so expected text can
be copied and maintained consistently without escaping interpolation or
other Dart string syntax.
Remove the now-unused null assertion helper and analyzer implementation
imports that were only needed by the direct assertions.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |