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

Unified Diff: pkg/matcher/test/core_matchers_test.dart

Issue 332913002: Fix the matcher tests in dart2js minified mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/matcher/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/test/core_matchers_test.dart
diff --git a/pkg/matcher/test/core_matchers_test.dart b/pkg/matcher/test/core_matchers_test.dart
index c7644a292a37ef08bf26098214f7a097d535528c..7e9b246d0cd4f231e3881c9884bb997a767151b6 100644
--- a/pkg/matcher/test/core_matchers_test.dart
+++ b/pkg/matcher/test/core_matchers_test.dart
@@ -55,14 +55,14 @@ void main() {
shouldPass(set2, equals(set1));
shouldPass(numbers, equals(set1));
- shouldFail([1, 2, 3, 4, 5, 6, 7, 8, 9], equals(set1),
- "Expected: ?:[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n"
- " Actual: [1, 2, 3, 4, 5, 6, 7, 8, 9]\n"
- " Which: does not contain 10");
- shouldFail([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], equals(set1),
- "Expected: ?:[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n"
- " Actual: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\n"
- " Which: larger than expected");
+ shouldFail([1, 2, 3, 4, 5, 6, 7, 8, 9], equals(set1), matches(
+ r"Expected: .*:\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\]"
+ r" Actual: \[1, 2, 3, 4, 5, 6, 7, 8, 9\]"
+ r" Which: does not contain 10"));
+ shouldFail([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], equals(set1), matches(
+ r"Expected: .*:\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\]"
+ r" Actual: \[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\]"
+ r" Which: larger than expected"));
});
test('anything', () {
« no previous file with comments | « pkg/matcher/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698