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

Unified Diff: test/core_matchers_test.dart

Issue 867133002: pkg/matcher: refactor with unittest v0.12 work (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: cl nits 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 | « pubspec.yaml ('k') | test/future_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 702489404ad8d11bdeb13cca7b3b7f421bed3e97..3213455472331ae9861530ce0503e2c93a5f36d7 100644
--- a/test/core_matchers_test.dart
+++ b/test/core_matchers_test.dart
@@ -10,8 +10,6 @@ import 'package:unittest/unittest.dart' show test, group;
import 'test_utils.dart';
void main() {
- initUtils();
-
test('isTrue', () {
shouldPass(true, isTrue);
shouldFail(false, isTrue, "Expected: true Actual: <false>");
@@ -117,10 +115,10 @@ void main() {
shouldPass(a, hasLength(0));
shouldPass(b, hasLength(0));
shouldPass('a', hasLength(1));
- shouldFail(0, hasLength(0), new PrefixMatcher(
+ shouldFail(0, hasLength(0),
"Expected: an object with length of <0> "
"Actual: <0> "
- "Which: has no length property"));
+ "Which: has no length property");
b.add(0);
shouldPass(b, hasLength(1));
« no previous file with comments | « pubspec.yaml ('k') | test/future_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698