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

Unified Diff: tests/language/optional_named_parameters_test.dart

Issue 10911211: Runtime support for the new parameter specification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tests/language/optional_named_parameters_test.dart
===================================================================
--- tests/language/optional_named_parameters_test.dart (revision 12186)
+++ tests/language/optional_named_parameters_test.dart (working copy)
@@ -62,28 +62,28 @@
Expect.equals(10, np.f22(10));
Expect.equals(20, F10());
Expect.equals(20, np.f21());
- Expect.equals(20, F10(20));
+ Expect.equals(20, F10(20)); /// 01: runtime error
Expect.equals(20, np.f21(20));
Expect.equals(20, F10(b:20));
Expect.equals(20, np.f21(b:20));
Expect.equals(1020, F21(10));
Expect.equals(1020, np.f32(10));
- Expect.equals(1025, F21(10, 25));
+ Expect.equals(1025, F21(10, 25)); /// 02: runtime error
Expect.equals(1025, np.f32(10, 25));
Expect.equals(1025, F21(10, b:25));
Expect.equals(1025, np.f32(10, b:25));
Expect.equals(102030, F31(10));
Expect.equals(102030, np.f42(10));
- Expect.equals(102530, F31(10, 25));
- Expect.equals(102530, np.f42(10, 25));
+ Expect.equals(102530, F31(10, 25)); /// 03: runtime error
+ Expect.equals(102530, np.f42(10, 25)); /// 04: runtime error
Expect.equals(102530, F31(10, b:25));
Expect.equals(102530, np.f42(10, b:25));
Expect.equals(102035, F31(10, c:35));
Expect.equals(102035, np.f42(10, c:35));
Expect.equals(102535, F31(10, b:25, c:35));
Expect.equals(102535, np.f42(10, b:25, c:35));
- Expect.equals(102535, F31(10, 25, c:35));
- Expect.equals(102535, np.f42(10, 25, c:35));
+ Expect.equals(102535, F31(10, 25, c:35)); /// 05: runtime error
+ Expect.equals(102535, np.f42(10, 25, c:35)); /// 06: runtime error
Expect.equals(102535, F31(10, c:35, b:25));
Expect.equals(102535, np.f42(10, c:35, b:25));
Expect.equals(10200040, F41(10));
@@ -91,7 +91,7 @@
Expect.equals(10203540, F41(10, c:35));
Expect.equals(10203540, np.f52(10, c:35));
Expect.equals(10250045, F41(10, d:45, b:25));
- Expect.equals(10250045, F41(10, 25, d:45));
+ Expect.equals(10250045, F41(10, 25, d:45)); /// 07: runtime error
Expect.equals(10250045, np.f52(10, d:45, b:25));
Expect.equals(10253545, F41(10, d:45, c:35, b:25));
Expect.equals(10253545, np.f52(10, d:45, c:35, b:25));
« lib/compiler/implementation/compiler.dart ('K') | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698