| 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 import "package:expect/expect.dart"; | |
| 6 | |
| 7 constants() { | 5 constants() { |
| 8 Expect.equals(0x80000000, 0x80000000 | 0); | 6 Expect.equals(0x80000000, 0x80000000 | 0); |
| 9 Expect.equals(0x80000001, 0x80000000 | 1); | 7 Expect.equals(0x80000001, 0x80000000 | 1); |
| 10 Expect.equals(0x80000000, 0x80000000 | 0x80000000); | 8 Expect.equals(0x80000000, 0x80000000 | 0x80000000); |
| 11 Expect.equals(0xFFFFFFFF, 0xFFFF0000 | 0xFFFF); | 9 Expect.equals(0xFFFFFFFF, 0xFFFF0000 | 0xFFFF); |
| 12 Expect.equals(0x80000000, 0x80000000 & 0xFFFFFFFF); | 10 Expect.equals(0x80000000, 0x80000000 & 0xFFFFFFFF); |
| 13 Expect.equals(0x80000000, 0x80000000 & 0x80000000); | 11 Expect.equals(0x80000000, 0x80000000 & 0x80000000); |
| 14 Expect.equals(0x80000000, 0x80000000 & 0xF0000000); | 12 Expect.equals(0x80000000, 0x80000000 & 0xF0000000); |
| 15 Expect.equals(0x80000000, 0xFFFFFFFF & 0x80000000); | 13 Expect.equals(0x80000000, 0xFFFFFFFF & 0x80000000); |
| 16 Expect.equals(0x80000000, 0x80000000 ^ 0); | 14 Expect.equals(0x80000000, 0x80000000 ^ 0); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 Expect.equals(0x80000000, ~(~(0x80000000))); | 115 Expect.equals(0x80000000, ~(~(0x80000000))); |
| 118 Expect.equals(0x80000000, ~(~(id(0x80000000)))); | 116 Expect.equals(0x80000000, ~(~(id(0x80000000)))); |
| 119 } | 117 } |
| 120 | 118 |
| 121 main() { | 119 main() { |
| 122 constants(); | 120 constants(); |
| 123 interceptors(); | 121 interceptors(); |
| 124 speculative(); | 122 speculative(); |
| 125 precedence(); | 123 precedence(); |
| 126 } | 124 } |
| OLD | NEW |