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

Unified Diff: tests/language/src/ListLiteralTest.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « tests/language/src/ListLiteralNegativeTest.dart ('k') | tests/language/src/ListTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ListLiteralTest.dart
diff --git a/tests/language/src/ListLiteralTest.dart b/tests/language/src/ListLiteralTest.dart
deleted file mode 100644
index 0d1261f8791282a2746a4c56ef2cfbc31c2b7abb..0000000000000000000000000000000000000000
--- a/tests/language/src/ListLiteralTest.dart
+++ /dev/null
@@ -1,51 +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.
-// Test program for array literals.
-
-class ListLiteralTest {
-
- static final LAUREL = 1;
- static final HARDY = 2;
-
- static testMain() {
-
- var funny = <int>[LAUREL, HARDY, ]; // Check that trailing comma works.
- Expect.equals(2, funny.length);
-
- List<int> m = <int>[101, 102, 100 + 3];
- Expect.equals(3, m.length);
- Expect.equals(101, m[0]);
- Expect.equals(103, m[2]);
-
- var d = m[2] - m[1];
- Expect.equals(1, d);
-
- var e2 = [5.1, -55, 555, 5555][2];
- Expect.equals(555, e2);
-
- e2 = <num>[5.1, -55, 555, 5555][2];
- Expect.equals(555, e2);
-
- e2 = const <num>[5.1, -55, 555, 5555][2];
- Expect.equals(555, e2);
-
- e2 = const [5.1, const <num>[-55, 555], 5555][1][1];
- Expect.equals(555, e2);
-
- Expect.equals(0, [].length);
- Expect.equals(0, <String>[].length);
- Expect.equals(0, const <String>[].length);
- Expect.equals(0, const [].length);
-
- e2 = [1, 2.0, 0x03, 2.0e5];
- Expect.equals(1, e2[0]);
- Expect.equals(2.0, e2[1]);
- Expect.equals(3, e2[2]);
- Expect.equals(200000.0, e2[3]);
- }
-}
-
-main() {
- ListLiteralTest.testMain();
-}
« no previous file with comments | « tests/language/src/ListLiteralNegativeTest.dart ('k') | tests/language/src/ListTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698