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

Unified Diff: tests/corelib/big_integer_arith_vm_test.dart

Issue 1224643003: Don't expect 0.gcd(0) to throw in bigint test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | 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 0d2f5169d92716b41127a62c6312869b99dadc5c..49e6e0dd8e7a977bf8c15fa6539f49337233fc1e 100644
--- a/tests/corelib/big_integer_arith_vm_test.dart
+++ b/tests/corelib/big_integer_arith_vm_test.dart
@@ -322,7 +322,7 @@ testBigintGcd() {
Expect.equals(-x, x.gcd(m));
x = 0;
m = 0;
- Expect.throws(() => x.gcd(m), (e) => e is ArgumentError);
+ Expect.equals(0, x.gcd(m));
x = 0;
m = 123456789012345678901234567890;
Expect.equals(m, x.gcd(m));
@@ -335,9 +335,6 @@ testBigintGcd() {
x = -123456789012345678901234567890;
m = 0;
Expect.equals(-x, x.gcd(m));
- x = 0;
- m = 0;
- Expect.throws(() => x.gcd(m), (e) => e is ArgumentError);
x = 1234567890;
m = 19;
Expect.equals(1, x.gcd(m));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698