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

Unified Diff: pkg/unittest/lib/src/interfaces.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/interfaces.dart
===================================================================
--- pkg/unittest/lib/src/interfaces.dart (revision 23039)
+++ pkg/unittest/lib/src/interfaces.dart (working copy)
@@ -53,6 +53,13 @@
*/
abstract class Matcher {
/**
+ * Whether failures should include the actual value in the output.
+ * The reason is passed in so that it can be inspected if necessary
+ * for some more complex cases.
+ */
+ bool includeActual(reason) => true;
+
+ /**
* This does the matching of the actual vs expected values.
* [item] is the actual value. [matchState] can be supplied
* and may be used to add details about the mismatch that are too

Powered by Google App Engine
This is Rietveld 408576698