Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: tests/language/positive_bit_operations_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698