OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 class Fisk { | 7 class Fisk { |
8 method( | 8 method( |
9 {a: 'a', | 9 {a: 'a', |
10 b: 'b', | 10 b: 'b', |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 'v: $v, ' | 56 'v: $v, ' |
57 'w: $w, ' | 57 'w: $w, ' |
58 'x: $x, ' | 58 'x: $x, ' |
59 'y: $y, ' | 59 'y: $y, ' |
60 'z: $z'; | 60 'z: $z'; |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 main() { | 64 main() { |
65 var method = new Fisk().method; | 65 var method = new Fisk().method; |
66 var namedArguments = new Map(); | 66 var namedArguments = new Map<Symbol, dynamic>(); |
67 namedArguments[const Symbol('a')] = 'a'; | 67 namedArguments[const Symbol('a')] = 'a'; |
68 Expect.stringEquals( | 68 Expect.stringEquals( |
69 EXPECTED_RESULT, Function.apply(method, [], namedArguments)); | 69 EXPECTED_RESULT, Function.apply(method, [], namedArguments)); |
70 Expect.stringEquals( | 70 Expect.stringEquals( |
71 EXPECTED_RESULT, | 71 EXPECTED_RESULT, |
72 new Fisk().method( | 72 new Fisk().method( |
73 a: 'a', | 73 a: 'a', |
74 b: 'b', | 74 b: 'b', |
75 c: 'c', | 75 c: 'c', |
76 d: 'd', | 76 d: 'd', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 'q: q, ' | 117 'q: q, ' |
118 'r: r, ' | 118 'r: r, ' |
119 's: s, ' | 119 's: s, ' |
120 't: t, ' | 120 't: t, ' |
121 'u: u, ' | 121 'u: u, ' |
122 'v: v, ' | 122 'v: v, ' |
123 'w: w, ' | 123 'w: w, ' |
124 'x: x, ' | 124 'x: x, ' |
125 'y: y, ' | 125 'y: y, ' |
126 'z: z'; | 126 'z: z'; |
OLD | NEW |