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

Side by Side Diff: tests/corelib/iterable_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/corelib/is_operator_basic_types_test.dart ('k') | tests/corelib/queue_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 // Tests for the contains methods on lists. 7 // Tests for the contains methods on lists.
8 8
9 test(list, notInList) { 9 test(list, notInList) {
10 testList(list) { 10 testList(list) {
(...skipping 27 matching lines...) Expand all
38 test(const <int>[1, 2, 3, null], 0); 38 test(const <int>[1, 2, 3, null], 0);
39 test(const <bool>[true, false], null); 39 test(const <bool>[true, false], null);
40 test(const <C>[const C(), const C(), null], new C()); 40 test(const <C>[const C(), const C(), null], new C());
41 test(<C>[new C(), new C(), new C(), null], new C()); 41 test(<C>[new C(), new C(), new C(), null], new C());
42 test(const <double>[ 0.0, 1.0, 5e-324, 1e+308, double.INFINITY ], 2.0); 42 test(const <double>[ 0.0, 1.0, 5e-324, 1e+308, double.INFINITY ], 2.0);
43 Expect.isTrue(const <double>[-0.0].contains(0.0)); 43 Expect.isTrue(const <double>[-0.0].contains(0.0));
44 Expect.isFalse(const <double>[double.NAN].contains(double.NAN)); 44 Expect.isFalse(const <double>[double.NAN].contains(double.NAN));
45 var niet = new Niet(); 45 var niet = new Niet();
46 Expect.isFalse([niet].contains(niet)); 46 Expect.isFalse([niet].contains(niet));
47 } 47 }
OLDNEW
« no previous file with comments | « tests/corelib/is_operator_basic_types_test.dart ('k') | tests/corelib/queue_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698