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

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: Ready for review 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
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..96cf8a76fac70257ae11e55819d44579df482a02 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -75,6 +75,13 @@ testDart2DartWithLibrary(
const ['--output-type=dart', '--unparse-validation']).then(continuation);
}
+testSignedConstants() {
Roman 2012/07/31 07:52:12 what about +inf, -inf, +0.0, -0.0 ?
Anton Muhin 2012/07/31 08:01:16 There is no inf, zero tests are added
+ testUnparse('var x=+42;');
+ testUnparse('var x=+.42;');
+ testUnparse('var x=-42;');
+ testUnparse('var x=-.42;');
+}
+
testGenericTypes() {
testUnparse('var x=new List<List<int>>();');
testUnparse('var x=new List<List<List<int>>>();');
@@ -374,6 +381,7 @@ main() {
}
main() {
+ testSignedConstants();
testGenericTypes();
testForLoop();
testEmptyList();

Powered by Google App Engine
This is Rietveld 408576698