OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 | 6 |
7 class A { | 7 class A { |
8 foo(a, b, c) { | 8 foo(a, b, c) { |
9 Expect.equals(1, a); | 9 Expect.equals(1, a); |
10 Expect.equals(2, b); | 10 Expect.equals(2, b); |
11 Expect.equals(3, c); | 11 Expect.equals(3, c); |
12 } | 12 } |
13 } | 13 } |
14 | 14 |
15 method(a, b, c) { | 15 method(a, b, c) { |
16 Expect.equals(1, a); | 16 Expect.equals(1, a); |
17 Expect.equals(2, b); | 17 Expect.equals(2, b); |
18 Expect.equals(3, c); | 18 Expect.equals(3, c); |
19 } | 19 } |
20 | 20 |
21 main() { | 21 main() { |
22 method(1, 2, 3); | 22 method(1, 2, 3); |
23 new A().foo(1, 2, 3); | 23 new A().foo(1, 2, 3); |
24 } | 24 } |
OLD | NEW |