OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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"; | |
6 | |
7 class FixedHashCode { | 5 class FixedHashCode { |
8 final int _hashCode; | 6 final int _hashCode; |
9 const FixedHashCode(this._hashCode); | 7 const FixedHashCode(this._hashCode); |
10 int get hashCode { return _hashCode; } | 8 int get hashCode { return _hashCode; } |
11 } | 9 } |
12 | 10 |
13 class SetIteratorTest { | 11 class SetIteratorTest { |
14 static testMain() { | 12 static testMain() { |
15 testSmallSet(); | 13 testSmallSet(); |
16 testLargeSet(); | 14 testLargeSet(); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 Expect.equals(true, identical(x, element)); | 131 Expect.equals(true, identical(x, element)); |
134 } | 132 } |
135 Expect.equals(true, foundIt); | 133 Expect.equals(true, foundIt); |
136 } | 134 } |
137 } | 135 } |
138 } | 136 } |
139 | 137 |
140 main() { | 138 main() { |
141 SetIteratorTest.testMain(); | 139 SetIteratorTest.testMain(); |
142 } | 140 } |
OLD | NEW |