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

Unified Diff: tests/language/import_combinators_test.dart

Issue 11028084: Land http://codereview.chromium.org/11047027/ for Matthias: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « tests/language/export1_lib.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/import_combinators_test.dart
===================================================================
--- tests/language/import_combinators_test.dart (revision 13375)
+++ tests/language/import_combinators_test.dart (working copy)
@@ -5,11 +5,20 @@
// Dart test program importing with show/hide combinators.
import "import1_lib.dart" show hide, show hide ugly;
+import "export1_lib.dart";
+import "dart:math" as M show E;
part "import_combinators_part.dart";
main() {
- print(hide);
- print(show);
- print(lookBehindCurtain());
+ Expect.equals("hide", hide);
+ Expect.equals("show", show);
+ // Top-level function from part, refers to imported variable show.
+ Expect.equals("show", lookBehindCurtain());
+ // Top-level variable E from export1_lib.dart.
+ Expect.equals("E", E);
+ // Top-level variable E imported from dart:math.
+ Expect.equals(2.718281828459045, M.E);
+ // Constant LN2 from math library, re-exported by export1_lib.dart.
+ Expect.equals(0.6931471805599453, LN2);
}
« no previous file with comments | « tests/language/export1_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698