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

Unified Diff: tests/corelib_strong/iterable_skip_test.dart

Issue 2683893002: Make corelib_strong tests strong-mode compliant (Closed)
Patch Set: Created 3 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
Index: tests/corelib_strong/iterable_skip_test.dart
diff --git a/tests/corelib_strong/iterable_skip_test.dart b/tests/corelib_strong/iterable_skip_test.dart
index 59d604dbf6c5328e0b953a1ba48195e387741052..b9d97aafcb0d12da35d004957eb7e34425ade074 100644
--- a/tests/corelib_strong/iterable_skip_test.dart
+++ b/tests/corelib_strong/iterable_skip_test.dart
@@ -215,17 +215,17 @@ main() {
Expect.isFalse(it.moveNext());
Expect.isNull(it.current);
- skip0 = set2.skip(0);
- it = skip0.iterator;
- Expect.isNull(it.current);
- Expect.isFalse(it.moveNext());
- Expect.isNull(it.current);
+ var dynamicSkip0 = set2.skip(0);
Leaf 2017/02/08 02:03:49 Alternatively, could make the set2 declaration be
+ var dynamicIt = dynamicSkip0.iterator;
+ Expect.isNull(dynamicIt.current);
+ Expect.isFalse(dynamicIt.moveNext());
+ Expect.isNull(dynamicIt.current);
- skip1 = set2.skip(1);
- it = skip1.iterator;
- Expect.isNull(it.current);
- Expect.isFalse(it.moveNext());
- Expect.isNull(it.current);
+ var dynamicSkip1 = set2.skip(1);
+ dynamicIt = dynamicSkip1.iterator;
+ Expect.isNull(dynamicIt.current);
+ Expect.isFalse(dynamicIt.moveNext());
+ Expect.isNull(dynamicIt.current);
testSkipTake(Iterable input, int skip, int take) {
List expected = [];

Powered by Google App Engine
This is Rietveld 408576698