Chromium Code Reviews

Unified Diff: pkg/unittest/lib/src/iterable_matchers.dart

Issue 208593004: pkg/unittest: dartfmt (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: pkg/unittest/lib/src/iterable_matchers.dart
diff --git a/pkg/unittest/lib/src/iterable_matchers.dart b/pkg/unittest/lib/src/iterable_matchers.dart
index 047903bbaaabe8fddc5ec4d957a92ad122e85c0a..8bc302fc7fe7775d00f4778c0aeee2276ea5aa34 100644
--- a/pkg/unittest/lib/src/iterable_matchers.dart
+++ b/pkg/unittest/lib/src/iterable_matchers.dart
@@ -156,8 +156,7 @@ abstract class _IterableMatcher extends Matcher {
*
* Note that this is `O(n^2)` and so should only be used on small objects.
*/
-Matcher unorderedMatches(Iterable expected) =>
- new _UnorderedMatches(expected);
+Matcher unorderedMatches(Iterable expected) => new _UnorderedMatches(expected);
class _UnorderedMatches extends Matcher {
final List<Matcher> _expected;
@@ -166,7 +165,7 @@ class _UnorderedMatches extends Matcher {
: _expected = expected.map(wrapMatcher).toList();
String _test(item) {
- if (item is !Iterable) return 'not iterable';
+ if (item is! Iterable) return 'not iterable';
item = item.toList();
// Check the lengths are the same.

Powered by Google App Engine