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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10828076: Support signed constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | « lib/compiler/implementation/tree/unparser.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 79ce4908dd8d9fa0f7233a6a9574a9edf339f143..f08109791950eb643533c3eeb83319a46e430531 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -75,6 +75,19 @@ testDart2DartWithLibrary(
const ['--output-type=dart', '--unparse-validation']).then(continuation);
}
+testSignedConstants() {
+ testUnparse('var x=+42;');
+ testUnparse('var x=+.42;');
+ testUnparse('var x=-42;');
+ testUnparse('var x=-.42;');
+ testUnparse('var x=+0;');
+ testUnparse('var x=+0.0;');
+ testUnparse('var x=+.0;');
+ testUnparse('var x=-0;');
+ testUnparse('var x=-0.0;');
+ testUnparse('var x=-.0;');
+}
+
testGenericTypes() {
testUnparse('var x=new List<List<int>>();');
testUnparse('var x=new List<List<List<int>>>();');
@@ -374,6 +387,7 @@ main() {
}
main() {
+ testSignedConstants();
testGenericTypes();
testForLoop();
testEmptyList();
« no previous file with comments | « lib/compiler/implementation/tree/unparser.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698