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

Unified Diff: tests/corelib/strings_test.dart

Issue 2983253002: Migrated test block 29 to Dart 2.0 (Closed)
Patch Set: Migrated test block 29 to Dart 2.0 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
Index: tests/corelib/strings_test.dart
diff --git a/tests/corelib/strings_test.dart b/tests/corelib/strings_test.dart
deleted file mode 100644
index 9603b17da5cb753d8ab84fb22909aae01bd5befb..0000000000000000000000000000000000000000
--- a/tests/corelib/strings_test.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2011, 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.
-
-import "package:expect/expect.dart";
-
-// Dart test program for testing class 'Strings'.
-
-class StringsTest {
- StringsTest() {}
-
- toString() {
- return "Strings Tester";
- }
-
- static testCreation() {
- String s = "Hello";
- List<int> l = new List(s.length);
- for (int i = 0; i < l.length; i++) {
- l[i] = s.codeUnitAt(i);
- }
- String s2 = new String.fromCharCodes(l);
- Expect.equals(s, s2);
- }
-
- static void testMain() {
- testCreation();
- }
-}
-
-main() {
- StringsTest.testMain();
-}

Powered by Google App Engine
This is Rietveld 408576698