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

Side by Side Diff: tests/corelib_2/int_modulo_arith_test.dart

Issue 2990623002: Migrate test block 9 to Dart 2.0 (Closed)
Patch Set: nits Created 3 years, 4 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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"; 5 import "package:expect/expect.dart";
6 6
7 import "dart:math" show pow; 7 import "dart:math" show pow;
8 8
9 var smallNumber = 1234567890; // is 31-bit integer. 9 var smallNumber = 1234567890; // is 31-bit integer.
10 var mediumNumber = 1234567890123456; // is 53-bit integer 10 var mediumNumber = 1234567890123456; // is 53-bit integer
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 test((pow(2, 52) - 1) * pow(2, 14), (pow(2, 26) - 1) * pow(2, 22), 189 test((pow(2, 52) - 1) * pow(2, 14), (pow(2, 26) - 1) * pow(2, 22),
190 (pow(2, 26) - 1) * pow(2, 14)); 190 (pow(2, 26) - 1) * pow(2, 14));
191 } 191 }
192 192
193 main() { 193 main() {
194 testModPow(); // //# modPow: ok 194 testModPow(); // //# modPow: ok
195 testModInverse(); 195 testModInverse();
196 testGcd(); 196 testGcd();
197 } 197 }
OLDNEW
« no previous file with comments | « tests/corelib_2/int_from_environment_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698