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

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

Issue 15755005: Change output of string equality match failures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/expect.dart
===================================================================
--- pkg/unittest/lib/src/expect.dart (revision 23554)
+++ pkg/unittest/lib/src/expect.dart (working copy)
@@ -144,9 +144,7 @@
description.add(' But: ')
.add(mismatchDescription.toString()).add('.\n');
- if (!mismatchDescription.toString().startsWith("was ")) {
- description.add('Actual: ').addDescriptionOf(actual);
- }
+ description.add('Actual: ').addDescriptionOf(actual);
if (reason != null) {
description.add(reason).add('\n');
}

Powered by Google App Engine
This is Rietveld 408576698