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 // Testing Mints. Note that the tests may not work on 64-bit machines, | 4 // Testing Mints. Note that the tests may not work on 64-bit machines, |
5 // as Smi's would be used to represent many of the numbers. | 5 // as Smi's would be used to represent many of the numbers. |
6 | 6 |
7 #library("MediumIntegerTest.dart"); | 7 #library("MediumIntegerTest.dart"); |
8 #import("dart:coreimpl"); | 8 #import("dart:coreimpl"); |
9 | 9 |
10 class MediumIntegerTest { | 10 class MediumIntegerTest { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 Expect.equals(false, a.hashCode() == b.hashCode()); | 156 Expect.equals(false, a.hashCode() == b.hashCode()); |
157 Expect.equals(true, a.hashCode() == (b - 1).hashCode()); | 157 Expect.equals(true, a.hashCode() == (b - 1).hashCode()); |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 main() { | 161 main() { |
162 for (int i = 0; i < 1000; i++) { | 162 for (int i = 0; i < 1000; i++) { |
163 MediumIntegerTest.testMain(); | 163 MediumIntegerTest.testMain(); |
164 } | 164 } |
165 } | 165 } |
OLD | NEW |