Index: packages/matcher/test/string_matchers_test.dart |
diff --git a/packages/matcher/test/string_matchers_test.dart b/packages/matcher/test/string_matchers_test.dart |
index 5b5afe4ce4c8ecdd55e1a206ff18b1f057077442..28d085c02b825fd871976b54fb15ce5afa7eba89 100644 |
--- a/packages/matcher/test/string_matchers_test.dart |
+++ b/packages/matcher/test/string_matchers_test.dart |
@@ -13,6 +13,16 @@ void main() { |
contains('Differ at offset 7')); |
}); |
+ test("Retains outer matcher mismatch text", () { |
+ shouldFail( |
+ {'word': 'thing'}, |
+ containsPair('word', equals('notthing')), |
+ allOf([ |
+ contains("contains key 'word' but with value is different"), |
+ contains("Differ at offset 0") |
+ ])); |
+ }); |
+ |
test('collapseWhitespace', () { |
var source = '\t\r\n hello\t\r\n world\r\t \n'; |
expect(collapseWhitespace(source), 'hello world'); |