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

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

Issue 16408019: Improved error messages from unittest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
« no previous file with comments | « pkg/unittest/lib/src/iterable_matchers.dart ('k') | pkg/unittest/lib/src/numeric_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/map_matchers.dart
===================================================================
--- pkg/unittest/lib/src/map_matchers.dart (revision 24041)
+++ pkg/unittest/lib/src/map_matchers.dart (working copy)
@@ -14,7 +14,7 @@
const _ContainsValue(this._value);
- bool matches(item, MatchState matchState) => item.containsValue(_value);
+ bool matches(item, Map matchState) => item.containsValue(_value);
Description describe(Description description) =>
description.add('contains value ').addDescriptionOf(_value);
}
@@ -32,7 +32,7 @@
const _ContainsMapping(this._key, Matcher this._valueMatcher);
- bool matches(item, MatchState matchState) =>
+ bool matches(item, Map matchState) =>
item.containsKey(_key) &&
_valueMatcher.matches(item[_key], matchState);
@@ -42,7 +42,7 @@
}
Description describeMismatch(item, Description mismatchDescription,
- MatchState matchState, bool verbose) {
+ Map matchState, bool verbose) {
if (!item.containsKey(_key)) {
return mismatchDescription.add(" doesn't contain key ")
.addDescriptionOf(_key);
« no previous file with comments | « pkg/unittest/lib/src/iterable_matchers.dart ('k') | pkg/unittest/lib/src/numeric_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698