Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Unified Diff: pkg/unittest/lib/src/map_matchers.dart

Issue 14600029: Add pretty-printing to unittest and more thoroughly print values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/unittest/lib/src/map_matchers.dart
diff --git a/pkg/unittest/lib/src/map_matchers.dart b/pkg/unittest/lib/src/map_matchers.dart
index eccc4ecfc9a6fdcfddce4461f8061597726b8b6f..72984f9903f77d70fea8c93033d38cd3c312ae5e 100644
--- a/pkg/unittest/lib/src/map_matchers.dart
+++ b/pkg/unittest/lib/src/map_matchers.dart
@@ -44,8 +44,8 @@ class _ContainsMapping extends BaseMatcher {
Description describeMismatch(item, Description mismatchDescription,
MatchState matchState, bool verbose) {
if (!item.containsKey(_key)) {
- return mismatchDescription.addDescriptionOf(item).
- add(" doesn't contain key ").addDescriptionOf(_key);
+ return mismatchDescription.add(" doesn't contain key ")
+ .addDescriptionOf(_key);
} else {
mismatchDescription.add(' contains key ').addDescriptionOf(_key).
add(' but with value ');

Powered by Google App Engine
This is Rietveld 408576698