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

Unified Diff: packages/matcher/test/string_matchers_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/matcher/test/pretty_print_test.dart ('k') | packages/matcher/test/test_utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/matcher/test/string_matchers_test.dart
diff --git a/packages/matcher/test/string_matchers_test.dart b/packages/matcher/test/string_matchers_test.dart
index 38fa1295a22b2d80df3831a0eae3294d98f7ffad..5b5afe4ce4c8ecdd55e1a206ff18b1f057077442 100644
--- a/packages/matcher/test/string_matchers_test.dart
+++ b/packages/matcher/test/string_matchers_test.dart
@@ -2,10 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library matcher.string_matchers_test;
-
import 'package:matcher/matcher.dart';
-import 'package:test/test.dart' show test, group, expect;
+import 'package:test/test.dart' show test, expect;
import 'test_utils.dart';
@@ -51,7 +49,9 @@ void main() {
test('equalsIgnoringWhitespace', () {
shouldPass(' hello world ', equalsIgnoringWhitespace('hello world'));
- shouldFail(' helloworld ', equalsIgnoringWhitespace('hello world'),
+ shouldFail(
+ ' helloworld ',
+ equalsIgnoringWhitespace('hello world'),
"Expected: 'hello world' ignoring whitespace "
"Actual: ' helloworld ' "
"Which: is 'helloworld' with whitespace compressed");
@@ -61,7 +61,9 @@ void main() {
shouldPass('hello', startsWith(''));
shouldPass('hello', startsWith('hell'));
shouldPass('hello', startsWith('hello'));
- shouldFail('hello', startsWith('hello '),
+ shouldFail(
+ 'hello',
+ startsWith('hello '),
"Expected: a string starting with 'hello ' "
"Actual: 'hello'");
});
@@ -70,7 +72,9 @@ void main() {
shouldPass('hello', endsWith(''));
shouldPass('hello', endsWith('lo'));
shouldPass('hello', endsWith('hello'));
- shouldFail('hello', endsWith(' hello'),
+ shouldFail(
+ 'hello',
+ endsWith(' hello'),
"Expected: a string ending with ' hello' "
"Actual: 'hello'");
});
@@ -98,7 +102,8 @@ void main() {
'goodbye cruel world', stringContainsInOrder(['cruel', 'world']));
shouldPass('goodbye cruel world',
stringContainsInOrder(['goodbye', 'cruel', 'world']));
- shouldFail('goodbye cruel world',
+ shouldFail(
+ 'goodbye cruel world',
stringContainsInOrder(['goo', 'cruel', 'bye']),
"Expected: a string containing 'goo', 'cruel', 'bye' in order "
"Actual: 'goodbye cruel world'");
« no previous file with comments | « packages/matcher/test/pretty_print_test.dart ('k') | packages/matcher/test/test_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698