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

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

Issue 936613007: Default to compact Map/Set implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/hash_map2_internal_test.dart ('k') | tests/corelib/hash_map_internal_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) 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 6 // VMOptions=--use_compact_hash=false
7 // VMOptions=--use_internal_hash_map 7 // VMOptions=--use_internal_hash_map --use_compact_hash=false
8 8
9 // Tests of hash map behavior, with focus in iteration and concurrent 9 // Tests of hash map behavior, with focus in iteration and concurrent
10 // modification errors. 10 // modification errors.
11 11
12 library hash_map2_test; 12 library hash_map2_test;
13 import "package:expect/expect.dart"; 13 import "package:expect/expect.dart";
14 import 'dart:collection'; 14 import 'dart:collection';
15 15
16 testMap(Map newMap(), Map newMapFrom(Map map)) { 16 testMap(Map newMap(), Map newMapFrom(Map map)) {
17 Map gen(int from, int to) { 17 Map gen(int from, int to) {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 testMap(() => new LinkedHashMap(), (m) => new LinkedHashMap.from(m)); 285 testMap(() => new LinkedHashMap(), (m) => new LinkedHashMap.from(m));
286 } 286 }
287 287
288 288
289 class BadHashCode { 289 class BadHashCode {
290 static int idCounter = 0; 290 static int idCounter = 0;
291 final int id; 291 final int id;
292 BadHashCode() : id = idCounter++; 292 BadHashCode() : id = idCounter++;
293 int get hashCode => 42; 293 int get hashCode => 42;
294 } 294 }
OLDNEW
« no previous file with comments | « tests/corelib/hash_map2_internal_test.dart ('k') | tests/corelib/hash_map_internal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698