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

Side by Side Diff: tests/language/range_analysis_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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
« no previous file with comments | « tests/language/pseudo_kw_test.dart ('k') | tests/language/raw_string_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Dart test program for constructors and initializers. 4 // Dart test program for constructors and initializers.
5 5
6 import "package:expect/expect.dart";
7
6 // Check that range analysis does not enter infinite loop trying to propagate 8 // Check that range analysis does not enter infinite loop trying to propagate
7 // ranges through dependant phis. 9 // ranges through dependant phis.
8 bar() { 10 bar() {
9 var sum = 0; 11 var sum = 0;
10 for (var i = 0; i < 10; i++) { 12 for (var i = 0; i < 10; i++) {
11 for (var j = i - 1; j >= 0; j--) { 13 for (var j = i - 1; j >= 0; j--) {
12 for (var k = j; k < i; k++) { 14 for (var k = j; k < i; k++) {
13 sum += (i + j + k); 15 sum += (i + j + k);
14 } 16 }
15 } 17 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 for (var i = 0; i < 2000; i++) h(10); 112 for (var i = 0; i < 2000; i++) h(10);
111 Expect.equals(10, h(10)); 113 Expect.equals(10, h(10));
112 } 114 }
113 115
114 116
115 main() { 117 main() {
116 test1(); 118 test1();
117 test2(); 119 test2();
118 test3(); 120 test3();
119 } 121 }
OLDNEW
« no previous file with comments | « tests/language/pseudo_kw_test.dart ('k') | tests/language/raw_string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698