matcher
matcher copied to clipboard
Matcher should always call describeMismatch of a nested macther
Originally opened as dart-lang/sdk#14068
This issue was originally filed by [email protected]
What steps will reproduce the problem?
- Create a Matcher with has a describeMismatch method
- Create a falling unittest with the Matcher in the isNot-Matcher: isNot(myMatcher)
What is the expected output? What do you see instead? Expected:
Expected: not <my description> Actual: <value> Which: <my mismatch description>
Actual:
Expected: not <my description> Actual: <value>
What version of the product are you using? On what operating system? Dart VM version: 0.8.1.2_r28355 (Tue Oct 08 06:29:27 2013) on "windows_ia32"
Please provide any additional information below. All matcher that contain other matcher should add the nested description. At least isNot is missing that.
<img src="https://avatars.githubusercontent.com/u/2156198?v=3" align="left" width="48" height="48"hspace="10"> Comment by kasperl
Added Area-UnitTest, Triaged labels.
<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo
Added Pkg-Unittest label.
<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo
Removed Area-UnitTest label. Added Area-Pkg label.
<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo
Removed Pkg-Unittest label. Added Pkg-matcher label.