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

Unified Diff: tests/corelib/big_integer_parsed_div_rem_vm_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/corelib/big_integer_parsed_div_rem_vm_test.dart
diff --git a/tests/corelib/big_integer_parsed_div_rem_vm_test.dart b/tests/corelib/big_integer_parsed_div_rem_vm_test.dart
index 7adf3677ec9192072770d1bdd512c0b2ed672481..551b7a7e882428ea525d7178893fd05106c6d0fb 100644
--- a/tests/corelib/big_integer_parsed_div_rem_vm_test.dart
+++ b/tests/corelib/big_integer_parsed_div_rem_vm_test.dart
@@ -7,6 +7,7 @@
// VMOptions=--no_intrinsify
library big_integer_test;
+
import "package:expect/expect.dart";
divRemParsed(String a, String b, String quotient, String remainder) {
@@ -16,15 +17,15 @@ divRemParsed(String a, String b, String quotient, String remainder) {
int int_remainder = int.parse(remainder);
int computed_quotient = int_a ~/ int_b;
Expect.equals(int_quotient, computed_quotient);
- String str_quotient = computed_quotient >= 0 ?
- "0x${computed_quotient.toRadixString(16)}" :
- "-0x${(-computed_quotient).toRadixString(16)}";
+ String str_quotient = computed_quotient >= 0
+ ? "0x${computed_quotient.toRadixString(16)}"
+ : "-0x${(-computed_quotient).toRadixString(16)}";
Expect.equals(quotient.toLowerCase(), str_quotient);
int computed_remainder = int_a.remainder(int_b);
Expect.equals(int_remainder, computed_remainder);
- String str_remainder = computed_remainder >= 0 ?
- "0x${computed_remainder.toRadixString(16)}" :
- "-0x${(-computed_remainder).toRadixString(16)}";
+ String str_remainder = computed_remainder >= 0
+ ? "0x${computed_remainder.toRadixString(16)}"
+ : "-0x${(-computed_remainder).toRadixString(16)}";
Expect.equals(remainder.toLowerCase(), str_remainder);
}

Powered by Google App Engine
This is Rietveld 408576698