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

Unified Diff: tests/corelib/iterable_generate_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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/iterable_generate_test.dart
diff --git a/tests/corelib/iterable_generate_test.dart b/tests/corelib/iterable_generate_test.dart
index abcae06e1c3034c06faf43051684e1fd4a1aa5c7..f3b1faae42b65a23ad9eae06a597fb4fabb4c195 100644
--- a/tests/corelib/iterable_generate_test.dart
+++ b/tests/corelib/iterable_generate_test.dart
@@ -59,12 +59,12 @@ main() {
// Invalid types:
Expect.throws(() => new Iterable<String>.generate(5));
- if (checkedMode) { /// 01: ok
- Expect.throws(() => new Iterable<Null>.generate(5).elementAt(2)); /// 01: continued
- } else { /// 01: continued
- Iterable<dynamic> iter5 = new Iterable<Null>.generate(5); /// 01: continued
- Expect.equals(2, iter5.elementAt(2)); /// 01: continued
- } /// 01: continued
+ if (checkedMode) { //# 01: ok
+ Expect.throws(() => new Iterable<Null>.generate(5).elementAt(2)); //# 01: continued
+ } else { //# 01: continued
+ Iterable<dynamic> iter5 = new Iterable<Null>.generate(5); //# 01: continued
+ Expect.equals(2, iter5.elementAt(2)); //# 01: continued
+ } //# 01: continued
Expect.throws(() => new Iterable<bool>.generate(5));
// Regression: https://github.com/dart-lang/sdk/issues/26358

Powered by Google App Engine
This is Rietveld 408576698