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

Side by Side Diff: tests/language/named_parameters_with_dollars_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
7 // Test to stress Frog's named parameter scheme. 5 // Test to stress Frog's named parameter scheme.
8 6
9 main() { 7 main() {
10 testDollar(); 8 testDollar();
11 testPsycho(); 9 testPsycho();
12 } 10 }
13 11
14 class TestClass { 12 class TestClass {
15 method({a, b, a$b, a$$b}) => [a, b, a$b, a$$b]; 13 method({a, b, a$b, a$$b}) => [a, b, a$b, a$$b];
16 14
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Expect.equals('[1, 2, -, -]', format(t.psycho($:1, $$:2))); 75 Expect.equals('[1, 2, -, -]', format(t.psycho($:1, $$:2)));
78 Expect.equals('[-, -, -, 4]', format(t.psycho($$$$: 4))); 76 Expect.equals('[-, -, -, 4]', format(t.psycho($$$$: 4)));
79 77
80 var obj = makeTestClass(0); 78 var obj = makeTestClass(0);
81 79
82 Expect.equals('[1, 2, -, -]', format(obj.psycho($:1, $$:2))); 80 Expect.equals('[1, 2, -, -]', format(obj.psycho($:1, $$:2)));
83 Expect.equals('[-, -, -, 4]', format(obj.psycho($$$$: 4))); 81 Expect.equals('[-, -, -, 4]', format(obj.psycho($$$$: 4)));
84 Expect.equals('[1, 2, 3, -]', format(obj.psycho($:1, $$:2, $$$:3))); 82 Expect.equals('[1, 2, 3, -]', format(obj.psycho($:1, $$:2, $$$:3)));
85 Expect.equals('[1, 2, 3, -]', format(obj.psycho($$$:3, $$:2, $:1))); 83 Expect.equals('[1, 2, 3, -]', format(obj.psycho($$$:3, $$:2, $:1)));
86 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698