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

Unified Diff: tests/language/import_combinators_test.dart

Issue 11047027: Implement export clause in VM (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
« runtime/vm/raw_object.h ('K') | « 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 13255)
+++ 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);
}
« runtime/vm/raw_object.h ('K') | « tests/language/export1_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698