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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
« no previous file with comments | « tests/language/positional_parameters_type_test.dart ('k') | tests/language/prefix101_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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
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 }
OLDNEW
« no previous file with comments | « tests/language/positional_parameters_type_test.dart ('k') | tests/language/prefix101_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698