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

Unified Diff: test/core_matchers_test.dart

Issue 919983003: Get rid of minified tests. (Closed) Base URL: git@github.com:dart-lang/matcher@master
Patch Set: Created 5 years, 10 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 | « .status ('k') | test/iterable_matchers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/core_matchers_test.dart
diff --git a/test/core_matchers_test.dart b/test/core_matchers_test.dart
index 3213455472331ae9861530ce0503e2c93a5f36d7..5d8a194177339ed5432aa02b58e8d470d56db48b 100644
--- a/test/core_matchers_test.dart
+++ b/test/core_matchers_test.dart
@@ -187,4 +187,16 @@ void main() {
shouldPass('cow', predicate((x) => x is String, "an instance of String"));
});
});
+
+ test("Feature Matcher", () {
+ var w = new Widget();
+ w.price = 10;
+ shouldPass(w, new HasPrice(10));
+ shouldPass(w, new HasPrice(greaterThan(0)));
+ shouldFail(w, new HasPrice(greaterThan(10)),
+ "Expected: Widget with a price that is a value greater than <10> "
+ "Actual: <Instance of 'Widget'> "
+ "Which: has price with value <10> which is not "
+ "a value greater than <10>");
+ });
}
« no previous file with comments | « .status ('k') | test/iterable_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698