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

Side by Side Diff: tests/language/function_literals_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
8 * Test various forms of function literals. 6 * Test various forms of function literals.
9 */ 7 */
10 typedef int IntFunc(int); 8 typedef int IntFunc(int);
11 9
12 class FunctionLiteralsTest { 10 class FunctionLiteralsTest {
13 static void checkIntFunction(expected, int f(x), arg) { 11 static void checkIntFunction(expected, int f(x), arg) {
14 Expect.equals(expected, f(arg)); 12 Expect.equals(expected, f(arg));
15 } 13 }
16 14
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 checkIntFunction(42, func2, 42); 78 checkIntFunction(42, func2, 42);
81 checkIntFunction(42, func3, 42); 79 checkIntFunction(42, func3, 42);
82 checkIntFunction(42, func4, 42); 80 checkIntFunction(42, func4, 42);
83 } 81 }
84 } 82 }
85 83
86 84
87 main() { 85 main() {
88 FunctionLiteralsTest.testMain(); 86 FunctionLiteralsTest.testMain();
89 } 87 }
OLDNEW
« no previous file with comments | « tests/language/function_literals2_test.dart ('k') | tests/language/function_malformed_result_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698