OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // A test to compare the results of the fixnum library with the Dart VM | 5 // A test to compare the results of the fixnum library with the Dart VM |
6 | 6 |
7 library int64vmtest; | 7 library int64vmtest; |
8 import "package:expect/expect.dart"; | |
9 import 'dart:math' as math; | 8 import 'dart:math' as math; |
10 | 9 |
11 part '../lib/src/int32.dart'; | 10 part '../lib/src/int32.dart'; |
12 part '../lib/src/int64.dart'; | 11 part '../lib/src/int64.dart'; |
13 part '../lib/src/intx.dart'; | 12 part '../lib/src/intx.dart'; |
14 | 13 |
15 final random = new math.Random(); | 14 final random = new math.Random(); |
16 | 15 |
17 void main() { | 16 void main() { |
18 int64VMTest test = new int64VMTest(); | 17 int64VMTest test = new int64VMTest(); |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 } | 320 } |
322 } | 321 } |
323 for (int i = 0; i < RANDOM_TESTS; i++) { | 322 for (int i = 0; i < RANDOM_TESTS; i++) { |
324 int64 randomLong = _randomInt64(); | 323 int64 randomLong = _randomInt64(); |
325 for (int shift = -64; shift <= 64; shift++) { | 324 for (int shift = -64; shift <= 64; shift++) { |
326 _doTestShift(op, randomLong, shift); | 325 _doTestShift(op, randomLong, shift); |
327 } | 326 } |
328 } | 327 } |
329 } | 328 } |
330 } | 329 } |
OLD | NEW |