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

Unified Diff: tests/corelib/big_integer_arith_vm_test.dart

Issue 2774783002: Re-land "Format all multitests" (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js_extra/switch_test.dart ('k') | tests/corelib/double_parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/big_integer_arith_vm_test.dart
diff --git a/tests/corelib/big_integer_arith_vm_test.dart b/tests/corelib/big_integer_arith_vm_test.dart
index 60c339a9e0339870c8879c6ff0e8ad2763cc5876..c22c7af3623c070059c399cc10e97322ace112a0 100644
--- a/tests/corelib/big_integer_arith_vm_test.dart
+++ b/tests/corelib/big_integer_arith_vm_test.dart
@@ -9,6 +9,7 @@
// VMOptions=--optimization_counter_threshold=10 --no-background_compilation
library big_integer_test;
+
import "package:expect/expect.dart";
foo() => 1234567890123456789;
@@ -19,7 +20,7 @@ testSmiOverflow() {
var b = 1073741822;
Expect.equals(2147483645, a + b);
a = -1000000000;
- b = 1000000001;
+ b = 1000000001;
Expect.equals(-2000000001, a - b);
Expect.equals(-1000000001000000000, a * b);
}
@@ -232,7 +233,7 @@ testBigintModInverse() {
Expect.equals(0, x.modInverse(m));
x = 0;
m = 1000000001;
- Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
+ Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
x = 1234567890;
m = 19;
Expect.equals(11, x.modInverse(m));
@@ -241,7 +242,7 @@ testBigintModInverse() {
Expect.equals(189108911, x.modInverse(m));
x = 19;
m = 1000000001;
- Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
+ Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
x = 19;
m = 1234567890;
Expect.equals(519818059, x.modInverse(m));
@@ -250,7 +251,7 @@ testBigintModInverse() {
Expect.equals(1001100101, x.modInverse(m));
x = 1000000001;
m = 19;
- Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
+ Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
x = 12345678901234567890;
m = 19;
Expect.equals(3, x.modInverse(m));
@@ -277,7 +278,7 @@ testBigintModInverse() {
Expect.equals(3, x.modInverse(m));
x = 123456789012345678901234567890;
m = 123456789012345678901234567899;
- Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
+ Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
x = 123456789012345678901234567890;
m = 123456789012345678901234567891;
Expect.equals(123456789012345678901234567890, x.modInverse(m));
@@ -286,7 +287,7 @@ testBigintModInverse() {
Expect.equals(77160493132716049313271604932, x.modInverse(m));
x = 123456789012345678901234567899;
m = 123456789012345678901234567890;
- Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
+ Expect.throws(() => x.modInverse(m), (e) => e is Exception); // Not coprime.
x = 123456789012345678901234567891;
m = 123456789012345678901234567890;
Expect.equals(1, x.modInverse(m));
@@ -306,9 +307,11 @@ testBigintGcd() {
x = 693 << 40;
m = 609 << 40;
Expect.equals(21 << 40, x.gcd(m));
- x = 609 << 40;;
- m = 693 << 40;;
- Expect.equals(21 <<40, x.gcd(m));
+ x = 609 << 40;
+ ;
+ m = 693 << 40;
+ ;
+ Expect.equals(21 << 40, x.gcd(m));
x = 0;
m = 1000000001;
Expect.equals(m, x.gcd(m));
@@ -400,7 +403,7 @@ testBigintGcd() {
testBigintNegate() {
var a = 0xF000000000000000F;
- var b = ~a; // negate.
+ var b = ~a; // negate.
Expect.equals(-0xF0000000000000010, b);
Expect.equals(0, a & b);
Expect.equals(-1, a | b);
« no previous file with comments | « tests/compiler/dart2js_extra/switch_test.dart ('k') | tests/corelib/double_parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698