| 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 class FixedHashCode implements Hashable { | 5 class FixedHashCode { |
| 6 final int _hashCode; | 6 final int _hashCode; |
| 7 const FixedHashCode(this._hashCode); | 7 const FixedHashCode(this._hashCode); |
| 8 int hashCode() { return _hashCode; } | 8 int hashCode() { return _hashCode; } |
| 9 } | 9 } |
| 10 | 10 |
| 11 class SetIteratorTest { | 11 class SetIteratorTest { |
| 12 static testMain() { | 12 static testMain() { |
| 13 testSmallSet(); | 13 testSmallSet(); |
| 14 testLargeSet(); | 14 testLargeSet(); |
| 15 testEmptySet(); | 15 testEmptySet(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 Expect.equals(true, x === element); | 140 Expect.equals(true, x === element); |
| 141 } | 141 } |
| 142 Expect.equals(true, foundIt); | 142 Expect.equals(true, foundIt); |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 | 146 |
| 147 main() { | 147 main() { |
| 148 SetIteratorTest.testMain(); | 148 SetIteratorTest.testMain(); |
| 149 } | 149 } |
| OLD | NEW |