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

Unified Diff: tests/standalone/int_array_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/standalone/int_array_test.dart
diff --git a/tests/standalone/int_array_test.dart b/tests/standalone/int_array_test.dart
index 1f3d0cdfb9e36b6f11add29cfa3a51216802acfb..d7f495d4f7f73bf052c0d6b157c0fbd51fbf1fc1 100644
--- a/tests/standalone/int_array_test.dart
+++ b/tests/standalone/int_array_test.dart
@@ -48,7 +48,7 @@ void testUint16() {
Expect.equals(65535, x);
Expect.equals(0, y);
Expect.equals(1, z);
- Expect.equals(2, w);
+ Expect.equals(2, w);
var t = y + 1;
intArray[0] = t;
Expect.equals(t, intArray[0]);
@@ -58,10 +58,10 @@ void testInt32ToSmi() {
Int32List intArray;
intArray = new Int32List(4);
- intArray[0] = 1073741823; // SmiMax
- intArray[1] = -1073741824; // SmiMin
- intArray[2] = 1073741824; // SmiMax+1
- intArray[3] = -1073741825; // SmiMin-1
+ intArray[0] = 1073741823; // SmiMax
+ intArray[1] = -1073741824; // SmiMin
+ intArray[2] = 1073741824; // SmiMax+1
+ intArray[3] = -1073741825; // SmiMin-1
var x = intArray[0];
var y = intArray[1];
var z = intArray[2];
@@ -76,10 +76,10 @@ void testUint32ToSmi() {
Uint32List intArray;
intArray = new Uint32List(4);
- intArray[0] = 1073741823; // SmiMax
- intArray[1] = -1; // 0xFFFFFFFF : 4294967295
- intArray[2] = 1073741830; // SmiMax+7
- intArray[3] = -1073741825; // 0xbfffffff : 3221225471
+ intArray[0] = 1073741823; // SmiMax
+ intArray[1] = -1; // 0xFFFFFFFF : 4294967295
+ intArray[2] = 1073741830; // SmiMax+7
+ intArray[3] = -1073741825; // 0xbfffffff : 3221225471
var x = intArray[0];
var y = intArray[1];
var z = intArray[2];
@@ -94,10 +94,10 @@ void testInt64ToSmi() {
Int64List intArray;
intArray = new Int64List(4);
- intArray[0] = 4611686018427387903; // SmiMax
+ intArray[0] = 4611686018427387903; // SmiMax
intArray[1] = -4611686018427387904; // SmiMin
- intArray[2] = 4611686018427387904; // SmiMax+1
- intArray[3] = -4611686018427387905; // SmiMin-1
+ intArray[2] = 4611686018427387904; // SmiMax+1
+ intArray[3] = -4611686018427387905; // SmiMin-1
var x = intArray[0];
var y = intArray[1];
var z = intArray[2];
@@ -112,8 +112,8 @@ void testUint64ToSmi() {
Uint64List intArray;
intArray = new Uint64List(4);
- intArray[0] = 4611686018427387903; // SmiMax
- intArray[1] = -1; // 0xFFFFFFFFFFFFFFFF : 18446744073709551615
+ intArray[0] = 4611686018427387903; // SmiMax
+ intArray[1] = -1; // 0xFFFFFFFFFFFFFFFF : 18446744073709551615
intArray[2] = 4611686018427387904; // SmiMax+1
intArray[3] = 9223372036854775808;
var x = intArray[0];
@@ -126,7 +126,6 @@ void testUint64ToSmi() {
Expect.equals(9223372036854775808, w);
}
-
main() {
testUint64ToSmi();
for (int i = 0; i < 2000; i++) {

Powered by Google App Engine
This is Rietveld 408576698