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

Unified Diff: tests/language/local_function_test.dart

Issue 11377102: Remove named function literals from library and tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/local_function2_test.dart ('k') | tests/language/param2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/local_function_test.dart
===================================================================
--- tests/language/local_function_test.dart (revision 14804)
+++ tests/language/local_function_test.dart (working copy)
@@ -93,14 +93,6 @@
static void hep(Function f) {
f();
}
- static testSelfReference3(int n) {
- int i = 0;
- var yup; // Not in same scope as yup below.
- hep(yup() {
- if (++i < n) hep(yup);
- });
- return i;
- }
static testNesting(int n) {
var a = new List(n*n);
f0() {
@@ -188,13 +180,9 @@
Expect.equals(320, new LocalFunctionTest().method(10));
Expect.equals(145, new LocalFunctionTest().testExecute(10));
Expect.equals(5, testSelfReference1(5));
- Expect.equals(5, testSelfReference3(5));
Expect.equals(24*25/2, testNesting(5));
Expect.equals(true, testClosureCallStatement(7));
- Expect.equals(99, doThis(10, int _(n) => n * n - 1));
- Expect.equals(99, doThis(10, int f(n) => n * n - 1));
Expect.equals(99, doThis(10, (n) => n * n - 1));
- Expect.equals(99, doThis(10, f(n) => n * n - 1));
testExceptions();
}
}
« no previous file with comments | « tests/language/local_function2_test.dart ('k') | tests/language/param2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698