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

Unified Diff: tests/corelib_strong/symbol_test.dart

Issue 2984893002: Removed files that were missed during migration and fixed status file. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tests/corelib_strong/symbol_reserved_word_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/symbol_test.dart
diff --git a/tests/corelib_strong/symbol_test.dart b/tests/corelib_strong/symbol_test.dart
deleted file mode 100644
index 6b97092a670c334d7ac6787b3c07f269dccbb4d1..0000000000000000000000000000000000000000
--- a/tests/corelib_strong/symbol_test.dart
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Basic test of Symbol class.
-
-main() {
- var x;
- print(x = const Symbol('fisk'));
-
- try {
- print(const Symbol(0)); //# 01: compile-time error
- } on NoSuchMethodError {
- print('Caught NoSuchMethodError');
- } on TypeError {
- print('Caught TypeError');
- }
-
- try {
- print(const Symbol('0')); //# 02: compile-time error
- } on ArgumentError catch (e) {
- print('Caught $e');
- }
-
- try {
- print(const Symbol('_')); //# 03: compile-time error
- } on ArgumentError catch (e) {
- print('Caught $e');
- }
-
- try {
- var y = 0;
- print(new Symbol(y));
- throw 'Expected a NoSuchMethodError or a TypeError';
- } on NoSuchMethodError {
- print('Caught NoSuchMethodError');
- } on TypeError {
- print('Caught TypeError');
- }
-
- try {
- print(new Symbol('0'));
- throw 'Expected an ArgumentError';
- } on ArgumentError catch (e) {
- print('Caught $e');
- }
-
- try {
- print(new Symbol('_'));
- throw 'Expected an ArgumentError';
- } on ArgumentError catch (e) {
- print('Caught $e');
- }
-
- if (!identical(const Symbol('fisk'), x)) {
- throw 'Symbol constant is not canonicalized';
- }
-
- if (const Symbol('fisk') != x) {
- throw 'Symbol constant is not equal to itself';
- }
-
- if (const Symbol('fisk') != new Symbol('fisk')) {
- throw 'Symbol constant is not equal to its non-const equivalent';
- }
-
- if (new Symbol('fisk') != new Symbol('fisk')) {
- throw 'new Symbol is not equal to its equivalent';
- }
-
- if (new Symbol('fisk') == new Symbol('hest')) {
- throw 'unrelated Symbols are equal';
- }
-
- if (new Symbol('fisk') == new Object()) {
- throw 'unrelated objects are equal';
- }
-
- x.hashCode as int;
-
- new Symbol('fisk').hashCode as int;
-
- 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';
- }
-}
« no previous file with comments | « tests/corelib_strong/symbol_reserved_word_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698