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

Side by Side Diff: tests/corelib/big_integer_vm_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/corelib/apply_test.dart ('k') | tests/corelib/bool_hashcode_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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Testing Bigints. 4 // Testing Bigints.
5 // TODO(srdjan): Make sure the numbers are Bigint and not Mint or Smi. 5 // TODO(srdjan): Make sure the numbers are Bigint and not Mint or Smi.
6 6
7 library big_integer_test; 7 library big_integer_test;
8 import "package:expect/expect.dart";
9 8
10 class BigIntegerTest { 9 class BigIntegerTest {
11 10
12 static foo() { 11 static foo() {
13 return 1234567890123456789; 12 return 1234567890123456789;
14 } 13 }
15 14
16 static testSmiOverflow() { 15 static testSmiOverflow() {
17 var a = 1073741823; 16 var a = 1073741823;
18 var b = 1073741822; 17 var b = 1073741822;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 var a = 10000000000000000000; 169 var a = 10000000000000000000;
171 var b = 10000000000000000001; 170 var b = 10000000000000000001;
172 Expect.equals(false, a.hashCode == b.hashCode); 171 Expect.equals(false, a.hashCode == b.hashCode);
173 Expect.equals(true, a.hashCode == (b - 1).hashCode); 172 Expect.equals(true, a.hashCode == (b - 1).hashCode);
174 } 173 }
175 } 174 }
176 175
177 main() { 176 main() {
178 BigIntegerTest.testMain(); 177 BigIntegerTest.testMain();
179 } 178 }
OLDNEW
« no previous file with comments | « tests/corelib/apply_test.dart ('k') | tests/corelib/bool_hashcode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698