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

Unified Diff: tests/language/number_syntax_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/number_syntax_test.dart
diff --git a/tests/language/number_syntax_test.dart b/tests/language/number_syntax_test.dart
index d06aeeee7dfb6a081bcce56191c9f7b605946c2e..94e689017bc6f4855f11eab5862d0bc0cc8446ba 100644
--- a/tests/language/number_syntax_test.dart
+++ b/tests/language/number_syntax_test.dart
@@ -5,7 +5,6 @@
import "package:expect/expect.dart";
class NumberSyntaxTest {
-
static void testMain() {
testShortDoubleSyntax();
testDotSelectorSyntax();
@@ -23,13 +22,13 @@ class NumberSyntaxTest {
Expect.equals('1', 1.toString());
Expect.equals('123', 123.toString());
- Expect.equals('0', 0 .toString());
- Expect.equals('1', 1 .toString());
- Expect.equals('123', 123 .toString());
+ Expect.equals('0', 0.toString());
+ Expect.equals('1', 1.toString());
+ Expect.equals('123', 123.toString());
- Expect.equals('0', 0. toString());
- Expect.equals('1', 1. toString());
- Expect.equals('123', 123. toString());
+ Expect.equals('0', 0.toString());
+ Expect.equals('1', 1.toString());
+ Expect.equals('123', 123.toString());
// Doubles.
Expect.equals((0.0).toString(), 0.0.toString());
@@ -37,23 +36,23 @@ class NumberSyntaxTest {
Expect.equals((1.1).toString(), 1.1.toString());
Expect.equals((123.4).toString(), 123.4.toString());
- Expect.equals((0.0).toString(), 0.0 .toString());
- Expect.equals((0.1).toString(), .1 .toString());
- Expect.equals((1.1).toString(), 1.1 .toString());
- Expect.equals((123.4).toString(), 123.4 .toString());
+ Expect.equals((0.0).toString(), 0.0.toString());
+ Expect.equals((0.1).toString(), .1.toString());
+ Expect.equals((1.1).toString(), 1.1.toString());
+ Expect.equals((123.4).toString(), 123.4.toString());
- Expect.equals((0.0).toString(), 0.0. toString());
- Expect.equals((0.1).toString(), .1. toString());
- Expect.equals((1.1).toString(), 1.1. toString());
- Expect.equals((123.4).toString(), 123.4. toString());
+ Expect.equals((0.0).toString(), 0.0.toString());
+ Expect.equals((0.1).toString(), .1.toString());
+ Expect.equals((1.1).toString(), 1.1.toString());
+ Expect.equals((123.4).toString(), 123.4.toString());
// Exponent notation.
Expect.equals((0e0).toString(), 0e0.toString());
Expect.equals((1e+1).toString(), 1e+1.toString());
Expect.equals((2.1e-34).toString(), 2.1e-34.toString());
}
-
}
+
main() {
NumberSyntaxTest.testMain();
}

Powered by Google App Engine
This is Rietveld 408576698