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

Unified Diff: test/string_matchers_test.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: nits Created 5 years, 11 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 | « test/prints_matcher_test.dart ('k') | test/test_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/string_matchers_test.dart
diff --git a/test/string_matchers_test.dart b/test/string_matchers_test.dart
index e2efadf6da4e4917a4e245eb8df4f4555bcebf5e..7a7acbdbb92cb0e1dd942787634159483b2f0b38 100644
--- a/test/string_matchers_test.dart
+++ b/test/string_matchers_test.dart
@@ -29,13 +29,13 @@ void main() {
shouldPass('a', isNot(isEmpty));
shouldFail('', isNot(isEmpty), 'Expected: not empty Actual: \'\'');
shouldFail(null, isNot(isEmpty),
- startsWith('Expected: not empty Actual: <null>'));
+ startsWith('Expected: not empty Actual: <null>'));
});
test('isNotEmpty', () {
shouldFail('', isNotEmpty, startsWith("Expected: non-empty Actual: ''"));
- shouldFail(null, isNotEmpty,
- startsWith("Expected: non-empty Actual: <null>"));
+ shouldFail(
+ null, isNotEmpty, startsWith("Expected: non-empty Actual: <null>"));
shouldFail(0, isNotEmpty, startsWith("Expected: non-empty Actual: <0>"));
shouldPass('a', isNotEmpty);
});
@@ -78,8 +78,8 @@ void main() {
shouldPass('hello', contains('o'));
shouldPass('hello', contains('hell'));
shouldPass('hello', contains('hello'));
- shouldFail('hello', contains(' '),
- "Expected: contains ' ' Actual: 'hello'");
+ shouldFail(
+ 'hello', contains(' '), "Expected: contains ' ' Actual: 'hello'");
});
test('stringContainsInOrder', () {
@@ -87,18 +87,18 @@ void main() {
shouldPass('goodbye cruel world', stringContainsInOrder(['goodbye']));
shouldPass('goodbye cruel world', stringContainsInOrder(['cruel']));
shouldPass('goodbye cruel world', stringContainsInOrder(['world']));
+ shouldPass(
+ 'goodbye cruel world', stringContainsInOrder(['good', 'bye', 'world']));
+ shouldPass(
+ 'goodbye cruel world', stringContainsInOrder(['goodbye', 'cruel']));
+ shouldPass(
+ 'goodbye cruel world', stringContainsInOrder(['cruel', 'world']));
shouldPass('goodbye cruel world',
- stringContainsInOrder(['good', 'bye', 'world']));
- shouldPass('goodbye cruel world',
- stringContainsInOrder(['goodbye', 'cruel']));
- shouldPass('goodbye cruel world',
- stringContainsInOrder(['cruel', 'world']));
- shouldPass('goodbye cruel world',
- stringContainsInOrder(['goodbye', 'cruel', 'world']));
+ stringContainsInOrder(['goodbye', 'cruel', 'world']));
shouldFail('goodbye cruel world',
- stringContainsInOrder(['goo', 'cruel', 'bye']),
- "Expected: a string containing 'goo', 'cruel', 'bye' in order "
- "Actual: 'goodbye cruel world'");
+ stringContainsInOrder(['goo', 'cruel', 'bye']),
+ "Expected: a string containing 'goo', 'cruel', 'bye' in order "
+ "Actual: 'goodbye cruel world'");
});
test('matches', () {
« no previous file with comments | « test/prints_matcher_test.dart ('k') | test/test_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698