| 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 // Testing Bigints. | 4 // Testing Bigints. |
| 5 | 5 |
| 6 library bit_twiddling_test; | 6 library bit_twiddling_test; |
| 7 | 7 |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 | 9 |
| 10 // See bit_twiddling_test.dart first. This file contains only the tests that | 10 // See bit_twiddling_test.dart first. This file contains only the tests that |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 checkS(0x100000200000000000001, 59, 0x200000000000001); | 52 checkS(0x100000200000000000001, 59, 0x200000000000001); |
| 53 checkS(0x100000200000000000001, 58, -0x200000000000000 + 1); | 53 checkS(0x100000200000000000001, 58, -0x200000000000000 + 1); |
| 54 checkS(0x100000200000000000001, 57, 1); | 54 checkS(0x100000200000000000001, 57, 1); |
| 55 } | 55 } |
| 56 | 56 |
| 57 main() { | 57 main() { |
| 58 testBitLength(); | 58 testBitLength(); |
| 59 testToUnsigned(); | 59 testToUnsigned(); |
| 60 testToSigned(); | 60 testToSigned(); |
| 61 } | 61 } |
| OLD | NEW |