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

Unified Diff: frog/tests/leg/unparser_test.dart

Issue 10540073: Properly parse > in end of types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Better tests Created 8 years, 6 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
« no previous file with comments | « no previous file | lib/compiler/implementation/scanner/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/unparser_test.dart
diff --git a/frog/tests/leg/unparser_test.dart b/frog/tests/leg/unparser_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4833123898b806a9c9b894ba0f65d579d0ddd2e8
--- /dev/null
+++ b/frog/tests/leg/unparser_test.dart
@@ -0,0 +1,22 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#import('parser_helper.dart');
+#import("../../../lib/compiler/implementation/tree/tree.dart");
+
+testUnparse(String statement) {
+ Node node = parseStatement(statement);
+ Expect.equals(statement, node.unparse(false));
+}
+
+testGenericTypes() {
+ testUnparse('var x=new List<List<int>>();');
+ testUnparse('var x=new List<List<List<int>>>();');
+ testUnparse('var x=new List<List<List<List<int>>>>();');
+ testUnparse('var x=new List<List<List<List<List<int>>>>>();');
+}
+
+main() {
+ testGenericTypes();
+}
« no previous file with comments | « no previous file | lib/compiler/implementation/scanner/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698