| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |