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

Side by Side Diff: tests/language/lazy_static_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/lazy_static6_test.dart ('k') | tests/language/left_shift_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 4
5 import "package:expect/expect.dart";
6
5 final x = foo(); 7 final x = foo();
6 final y = y2(y3); 8 final y = y2(y3);
7 final y2 = incrementCreator(); 9 final y2 = incrementCreator();
8 final y3 = fib(5); 10 final y3 = fib(5);
9 11
10 foo() => 499; 12 foo() => 499;
11 13
12 incrementCreator() => (x) => x + 1; 14 incrementCreator() => (x) => x + 1;
13 fib(x) { 15 fib(x) {
14 if (x < 2) return x; 16 if (x < 2) return x;
(...skipping 24 matching lines...) Expand all
39 main() { 41 main() {
40 Expect.equals(499, x); 42 Expect.equals(499, x);
41 Expect.equals(6, y); 43 Expect.equals(6, y);
42 Expect.equals(666, A.a); 44 Expect.equals(666, A.a);
43 Expect.equals(119, A.b); 45 Expect.equals(119, A.b);
44 Expect.equals(0, t); 46 Expect.equals(0, t);
45 t2 = 499; 47 t2 = 499;
46 Expect.equals(499, t2); 48 Expect.equals(499, t2);
47 Expect.equals(1, count); 49 Expect.equals(1, count);
48 } 50 }
OLDNEW
« no previous file with comments | « tests/language/lazy_static6_test.dart ('k') | tests/language/left_shift_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698