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

Unified Diff: tests/corelib/collection_contains_test.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/corelib/collection_removes_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/collection_contains_test.dart
diff --git a/tests/corelib/collection_contains_test.dart b/tests/corelib/collection_contains_test.dart
deleted file mode 100644
index bfb7038eb01736911a7807ab56d2127799a6806d..0000000000000000000000000000000000000000
--- a/tests/corelib/collection_contains_test.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012, 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";
-
-// Tests for the contains methods on lists.
-
-test(list, notInList) {
- testList(list) {
- for (int i = 0; i < list.length; i++) {
- var elem = list[i];
- Expect.isTrue(list.contains(list[i]), "$list.contains($elem)");
- }
- Expect.isFalse(list.contains(notInList), "!$list.contains($notInList)");
- }
- List fixedList = new List(list.length);
- List growList = new List();
- for (int i = 0; i < list.length; i++) {
- fixedList[i] = list[i];
- growList.add(list[i]);
- }
- testList(list);
- testList(fixedList);
- testList(growList);
-}
-
-class C {
- const C();
-}
-
-class Niet {
- bool operator==(other) => false;
-}
-
-main() {
- test(const <String>["a", "b", "c", null], "d");
- test(const <int>[1, 2, 3, null], 0);
- test(const <bool>[true, false], null);
- test(const <C>[const C(), const C(), null], new C());
- test(<C>[new C(), new C(), new C(), null], new C());
- test(const <double>[ 0.0, 1.0, 5e-324, 1e+308, double.INFINITY ], 2.0);
- Expect.isTrue(const <double>[-0.0].contains(0.0));
- Expect.isFalse(const <double>[double.NAN].contains(double.NAN));
- var niet = new Niet();
- Expect.isFalse([niet].contains(niet));
-}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/corelib/collection_removes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698