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

Side by Side Diff: tests/standalone/medium_integer_test.dart

Issue 10909200: Fix issues 5137: instance of test on constant value should return true or false, not the value itse… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | 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 Mints. Note that the tests may not work on 64-bit machines, 4 // Testing Mints. Note that the tests may not work on 64-bit machines,
5 // as Smi's would be used to represent many of the numbers. 5 // as Smi's would be used to represent many of the numbers.
6 6
7 #library("MediumIntegerTest.dart"); 7 #library("MediumIntegerTest.dart");
8 #import("dart:coreimpl"); 8 #import("dart:coreimpl");
9 9
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 Expect.equals(false, a.hashCode() == b.hashCode()); 163 Expect.equals(false, a.hashCode() == b.hashCode());
164 Expect.equals(true, a.hashCode() == (b - 1).hashCode()); 164 Expect.equals(true, a.hashCode() == (b - 1).hashCode());
165 testAlwaysMint(); 165 testAlwaysMint();
166 } 166 }
167 } 167 }
168 168
169 bool runsOn32Bit; 169 bool runsOn32Bit;
170 170
171 main() { 171 main() {
172 runsOn32Bit = 4294967295 is Mint; 172 runsOn32Bit = 4294967295 is Mint;
173 for (int i = 0; i < 1000; i++) { 173 for (int i = 0; i < 4000; i++) {
174 MediumIntegerTest.testMain(); 174 MediumIntegerTest.testMain();
175 } 175 }
176 } 176 }
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698