OLD | NEW |
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"; | 5 import "package:expect/expect.dart"; |
6 | 6 |
7 final x = foo(); | 7 final x = foo(); |
8 final y = y2(y3); | 8 final y = y2(y3); |
9 final y2 = incrementCreator(); | 9 final y2 = incrementCreator(); |
10 final y3 = fib(5); | 10 final y3 = fib(5); |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 main() { | 41 main() { |
42 Expect.equals(499, x); | 42 Expect.equals(499, x); |
43 Expect.equals(6, y); | 43 Expect.equals(6, y); |
44 Expect.equals(666, A.a); | 44 Expect.equals(666, A.a); |
45 Expect.equals(119, A.b); | 45 Expect.equals(119, A.b); |
46 Expect.equals(0, t); | 46 Expect.equals(0, t); |
47 t2 = 499; | 47 t2 = 499; |
48 Expect.equals(499, t2); | 48 Expect.equals(499, t2); |
49 Expect.equals(1, count); | 49 Expect.equals(1, count); |
50 } | 50 } |
OLD | NEW |