| 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();
|
| +}
|
|
|