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

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

Issue 21511003: Support symbol literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index d470b3f988f68da2a5ae54d768b8606ed47800b0..38e9bdba37acc1289ab241191c3b92570aed0f06 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -341,6 +341,28 @@ testParameters() {
]);
}
+testSymbolLiterals() {
+ testUnparse("#+;");
+ testUnparse("#-;");
+ testUnparse("#*;");
+ testUnparse("#/;");
+ testUnparse("#~/;");
+ testUnparse("#%;");
+ testUnparse("#<;");
+ testUnparse("#<=;");
+ testUnparse("#>;");
+ testUnparse("#>=;");
+ testUnparse("#==;");
+ testUnparse("#&;");
+ testUnparse("#|;");
+ testUnparse("#^;");
+
+ testUnparse("#a;");
+ testUnparse("#a.b;");
+ testUnparse("#a.b.c;");
+ testUnparse("#aa.bb.cc.dd;");
+}
+
main() {
testSignedConstants();
testGenericTypes();
@@ -362,4 +384,5 @@ main() {
testClassDeclarations();
testMixinApplications();
testParameters();
+ testSymbolLiterals();
}

Powered by Google App Engine
This is Rietveld 408576698