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

Unified Diff: tests/language_strong/equality_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/language_strong/equality_test.dart
diff --git a/tests/language_strong/equality_test.dart b/tests/language_strong/equality_test.dart
index 208ed0c0ae5209cd336acb8b86b30b26bb33ac04..69d8572c7c8e234e952fa45d09fd6985cd0780ac 100644
--- a/tests/language_strong/equality_test.dart
+++ b/tests/language_strong/equality_test.dart
@@ -5,18 +5,20 @@
import "package:expect/expect.dart";
-
class A {
bool _result;
A(this._result);
- operator ==(x) { return _result; }
+ operator ==(x) {
+ return _result;
+ }
}
-
-opaque(x) => [x,1,'y'][0]; // confuse the optimizers.
+opaque(x) => [x, 1, 'y'][0]; // confuse the optimizers.
class Death {
- operator ==(x) { throw 'Dead!'; }
+ operator ==(x) {
+ throw 'Dead!';
+ }
}
death() => opaque(new Death());
@@ -47,8 +49,7 @@ tests() {
if (death() == nullFn()) {
throw "failed";
}
- if (death() != nullFn()) {
- } else {
+ if (death() != nullFn()) {} else {
throw "failed";
}
}

Powered by Google App Engine
This is Rietveld 408576698