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

Unified Diff: tests/corelib_strong/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/corelib/symbol_operator_test.dart ('k') | tests/corelib_strong/double_parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/big_integer_arith_vm_test.dart
diff --git a/tests/corelib_strong/big_integer_arith_vm_test.dart b/tests/corelib_strong/big_integer_arith_vm_test.dart
index e17f0a97f3eb8c97dc37b4d11231464796ff92b4..b66c162a6d4fc38abc3089a920a782364a50a023 100644
--- a/tests/corelib_strong/big_integer_arith_vm_test.dart
+++ b/tests/corelib_strong/big_integer_arith_vm_test.dart
@@ -8,6 +8,7 @@
// VMOptions=--optimization_counter_threshold=10 --no-background_compilation
library big_integer_test;
+
import "package:expect/expect.dart";
foo() => 1234567890123456789;
@@ -18,7 +19,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);
}
@@ -231,7 +232,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));
@@ -240,7 +241,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));
@@ -249,7 +250,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));
@@ -276,7 +277,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));
@@ -285,7 +286,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));
@@ -305,9 +306,9 @@ 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));
@@ -399,7 +400,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/corelib/symbol_operator_test.dart ('k') | tests/corelib_strong/double_parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698