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

Unified Diff: dart/tests/corelib/symbol_test.dart

Issue 14173005: Update dart:mirrors to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix various issues discovered during own review. Created 7 years, 8 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: dart/tests/corelib/symbol_test.dart
diff --git a/dart/tests/corelib/symbol_test.dart b/dart/tests/corelib/symbol_test.dart
index b3604c4e0e51c518e30baffb15f4a144f8f86a24..a160244d4786aaace8e3d318dd6abad137efabf0 100644
--- a/dart/tests/corelib/symbol_test.dart
+++ b/dart/tests/corelib/symbol_test.dart
@@ -83,4 +83,8 @@ main() {
if (new Symbol('fisk').hashCode != x.hashCode) {
throw "non-const Symbol's hashCode not equal to its const equivalent";
}
+
+ if (new Symbol('') != const Symbol('')) {
+ throw 'empty Symbol not equals to itself';
+ }
}

Powered by Google App Engine
This is Rietveld 408576698