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

Side by Side Diff: tests/compiler/dart2js_extra/for_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart";
6
7 void for1() { 5 void for1() {
8 var cond = true; 6 var cond = true;
9 var result = 0; 7 var result = 0;
10 for (var x = 0; cond; x = x + 1) { 8 for (var x = 0; cond; x = x + 1) {
11 if (x == 10) cond = false; 9 if (x == 10) cond = false;
12 result = result + x; 10 result = result + x;
13 } 11 }
14 Expect.equals(55, result); 12 Expect.equals(55, result);
15 } 13 }
16 14
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 78 }
81 79
82 void main() { 80 void main() {
83 for1(); 81 for1();
84 for2(); 82 for2();
85 for3(); 83 for3();
86 for4(); 84 for4();
87 for5(); 85 for5();
88 for6(); 86 for6();
89 } 87 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/for_in_test.dart ('k') | tests/compiler/dart2js_extra/generics_is_check1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698