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

Side by Side Diff: tests/language_strong/many_named_arguments_test.dart

Issue 2989993002: fix unsound cast failures in tests (Closed)
Patch Set: fix Created 3 years, 4 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
OLDNEW
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
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
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';
OLDNEW
« no previous file with comments | « tests/language_strong/async_test.dart ('k') | tests/lib_strong/collection/linked_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698