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

Side by Side Diff: tests/language/bit_shift_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/bit_operations_test.dart ('k') | tests/language/block_scope_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(0, 499 >> 33); 6 Expect.equals(0, 499 >> 33);
9 Expect.equals(0, (499 << 33) & 0xFFFFFFFF); 7 Expect.equals(0, (499 << 33) & 0xFFFFFFFF);
10 } 8 }
11 9
12 foo(i) { 10 foo(i) {
13 if (i != 0) { 11 if (i != 0) {
14 y--; 12 y--;
15 foo(i - 1); 13 foo(i - 1);
16 y++; 14 y++;
(...skipping 22 matching lines...) Expand all
39 } 37 }
40 } 38 }
41 39
42 // JavaScript shifts by the amount modulo 32. That is x << y is equivalent to 40 // JavaScript shifts by the amount modulo 32. That is x << y is equivalent to
43 // x << (y & 0x1F). Dart does not. 41 // x << (y & 0x1F). Dart does not.
44 main() { 42 main() {
45 constants(); 43 constants();
46 interceptors(); 44 interceptors();
47 speculative(); 45 speculative();
48 } 46 }
OLDNEW
« no previous file with comments | « tests/language/bit_operations_test.dart ('k') | tests/language/block_scope_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698