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

Unified Diff: tests/corelib_strong/iterable_take_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_take_test.dart
diff --git a/tests/corelib_strong/iterable_take_test.dart b/tests/corelib_strong/iterable_take_test.dart
index fdedb93e320b0a882826ad8d932ffcfda80fe35c..926ab915908d561b21590190915a891624c17115 100644
--- a/tests/corelib_strong/iterable_take_test.dart
+++ b/tests/corelib_strong/iterable_take_test.dart
@@ -204,17 +204,17 @@ main() {
Expect.isFalse(it.moveNext());
Expect.isNull(it.current);
- take0 = set2.take(0);
- it = take0.iterator;
- Expect.isNull(it.current);
- Expect.isFalse(it.moveNext());
- Expect.isNull(it.current);
-
- take1 = set2.take(1);
- it = take1.iterator;
- Expect.isNull(it.current);
- Expect.isFalse(it.moveNext());
- Expect.isNull(it.current);
+ var dynamicTake0 = set2.take(0);
+ var dynamicIt = dynamicTake0.iterator;
+ Expect.isNull(dynamicIt.current);
+ Expect.isFalse(dynamicIt.moveNext());
+ Expect.isNull(dynamicIt.current);
+
+ var dynamicTake1 = set2.take(1);
+ dynamicIt = dynamicTake1.iterator;
+ Expect.isNull(dynamicIt.current);
+ Expect.isFalse(dynamicIt.moveNext());
+ Expect.isNull(dynamicIt.current);
Expect.throws(() => list1.skip(-1), (e) => e is RangeError);
Expect.throws(() => list2.skip(-1), (e) => e is RangeError);

Powered by Google App Engine
This is Rietveld 408576698