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

Side by Side Diff: tests/corelib/hash_set_test.dart

Issue 983703003: Replace Linked{Identity,Custom}Hash{Map,Set} with compact implementation; remove old code and flag. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // VMOptions= 5 // VMOptions=
6 // VMOptions=--use_compact_hash=false
7 6
8 // Tests of hash set behavior, with focus in iteration and concurrent 7 // Tests of hash set behavior, with focus in iteration and concurrent
9 // modification errors. 8 // modification errors.
10 9
11 library hash_map2_test; 10 library hash_map2_test;
12 import "package:expect/expect.dart"; 11 import "package:expect/expect.dart";
13 import 'dart:collection'; 12 import 'dart:collection';
14 import 'dart:math' as math; 13 import 'dart:math' as math;
15 14
16 testSet(Set newSet(), Set newSetFrom(Iterable from)) { 15 testSet(Set newSet(), Set newSetFrom(Iterable from)) {
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // Can't make a bad compareTo that isn't invalid. 340 // Can't make a bad compareTo that isn't invalid.
342 int compareTo(BadHashCode other) => id - other.id; 341 int compareTo(BadHashCode other) => id - other.id;
343 } 342 }
344 343
345 class Mutable { 344 class Mutable {
346 int id; 345 int id;
347 Mutable(this.id); 346 Mutable(this.id);
348 int get hashCode => id; 347 int get hashCode => id;
349 bool operator==(other) => other is Mutable && id == other.id; 348 bool operator==(other) => other is Mutable && id == other.id;
350 } 349 }
OLDNEW
« runtime/lib/compact_hash.dart ('K') | « tests/corelib/hash_map_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698