| OLD | NEW |
| 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 |
| 5 // Test to stress Frog's named parameter scheme. | 7 // Test to stress Frog's named parameter scheme. |
| 6 | 8 |
| 7 main() { | 9 main() { |
| 8 testDollar(); | 10 testDollar(); |
| 9 testPsycho(); | 11 testPsycho(); |
| 10 } | 12 } |
| 11 | 13 |
| 12 class TestClass { | 14 class TestClass { |
| 13 method({a, b, a$b, a$$b}) => [a, b, a$b, a$$b]; | 15 method({a, b, a$b, a$$b}) => [a, b, a$b, a$$b]; |
| 14 | 16 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 Expect.equals('[1, 2, -, -]', format(t.psycho($:1, $$:2))); | 77 Expect.equals('[1, 2, -, -]', format(t.psycho($:1, $$:2))); |
| 76 Expect.equals('[-, -, -, 4]', format(t.psycho($$$$: 4))); | 78 Expect.equals('[-, -, -, 4]', format(t.psycho($$$$: 4))); |
| 77 | 79 |
| 78 var obj = makeTestClass(0); | 80 var obj = makeTestClass(0); |
| 79 | 81 |
| 80 Expect.equals('[1, 2, -, -]', format(obj.psycho($:1, $$:2))); | 82 Expect.equals('[1, 2, -, -]', format(obj.psycho($:1, $$:2))); |
| 81 Expect.equals('[-, -, -, 4]', format(obj.psycho($$$$: 4))); | 83 Expect.equals('[-, -, -, 4]', format(obj.psycho($$$$: 4))); |
| 82 Expect.equals('[1, 2, 3, -]', format(obj.psycho($:1, $$:2, $$$:3))); | 84 Expect.equals('[1, 2, 3, -]', format(obj.psycho($:1, $$:2, $$$:3))); |
| 83 Expect.equals('[1, 2, 3, -]', format(obj.psycho($$$:3, $$:2, $:1))); | 85 Expect.equals('[1, 2, 3, -]', format(obj.psycho($$$:3, $$:2, $:1))); |
| 84 } | 86 } |
| OLD | NEW |