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