Skip to content

Commit 334152a

Browse files
munificentCommit Queue
authored andcommitted
Format tests/language/o*.
Lot of trailing commas and filling in some unspecified errors. Change-Id: Ia231b7cde0b91b45362b1e6b8fd0c86dcf093eed Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408888 Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Lasse Nielsen <[email protected]> Auto-Submit: Bob Nystrom <[email protected]>
1 parent 7af1b8b commit 334152a

34 files changed

+352
-700
lines changed

tests/language/operator/compound_assignment_test.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import "package:expect/expect.dart";
88

99
class Indexed {
10-
Indexed()
11-
: _f = new List<dynamic>.filled(10, null),
12-
count = 0 {
10+
Indexed() : _f = new List<dynamic>.filled(10, null), count = 0 {
1311
_f[0] = 100;
1412
_f[1] = 200;
1513
}

tests/language/operator/div_with_power_of_two2_test.dart

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,71 +15,71 @@ var expectedResults = [
1515
[134217730, 134217730],
1616
[-134217730, -134217730],
1717
[10, 10],
18-
[-10, -10]
19-
]
18+
[-10, -10],
19+
],
2020
],
2121
[
2222
divByNeg1,
2323
[
2424
[134217730, -134217730],
2525
[-134217730, 134217730],
2626
[10, -10],
27-
[-10, 10]
28-
]
27+
[-10, 10],
28+
],
2929
],
3030
[
3131
divBy2,
3232
[
3333
[134217730, 67108865],
3434
[-134217730, -67108865],
3535
[10, 5],
36-
[-10, -5]
37-
]
36+
[-10, -5],
37+
],
3838
],
3939
[
4040
divByNeg2,
4141
[
4242
[134217730, -67108865],
4343
[-134217730, 67108865],
4444
[10, -5],
45-
[-10, 5]
46-
]
45+
[-10, 5],
46+
],
4747
],
4848
[
4949
divBy4,
5050
[
5151
[134217730, 33554432],
5252
[-134217730, -33554432],
5353
[10, 2],
54-
[-10, -2]
55-
]
54+
[-10, -2],
55+
],
5656
],
5757
[
5858
divByNeg4,
5959
[
6060
[134217730, -33554432],
6161
[-134217730, 33554432],
6262
[10, -2],
63-
[-10, 2]
64-
]
63+
[-10, 2],
64+
],
6565
],
6666
[
6767
divBy134217728,
6868
[
6969
[134217730, 1],
7070
[-134217730, -1],
7171
[10, 0],
72-
[-10, 0]
73-
]
72+
[-10, 0],
73+
],
7474
],
7575
[
7676
divByNeg134217728,
7777
[
7878
[134217730, -1],
7979
[-134217730, 1],
8080
[10, 0],
81-
[-10, 0]
82-
]
81+
[-10, 0],
82+
],
8383
],
8484
// Use different functions for 64 bit arguments.
8585
[
@@ -88,35 +88,35 @@ var expectedResults = [
8888
[549755813990, 137438953497],
8989
[-549755813990, -137438953497],
9090
[288230925907525632, 72057731476881408],
91-
[-288230925907525632, -72057731476881408]
92-
]
91+
[-288230925907525632, -72057731476881408],
92+
],
9393
],
9494
[
9595
divByNeg4_,
9696
[
9797
[549755813990, -137438953497],
9898
[-549755813990, 137438953497],
9999
[288230925907525632, -72057731476881408],
100-
[-288230925907525632, 72057731476881408]
101-
]
100+
[-288230925907525632, 72057731476881408],
101+
],
102102
],
103103
[
104104
divBy549755813888,
105105
[
106106
[549755813990, 1],
107107
[-549755813990, -1],
108108
[288230925907525632, 524289],
109-
[-288230925907525632, -524289]
110-
]
109+
[-288230925907525632, -524289],
110+
],
111111
],
112112
[
113113
divByNeg549755813888,
114114
[
115115
[549755813990, -1],
116116
[-549755813990, 1],
117117
[288230925907525632, -524289],
118-
[-288230925907525632, 524289]
119-
]
118+
[-288230925907525632, 524289],
119+
],
120120
],
121121
];
122122

tests/language/operator/div_with_power_of_two_test.dart

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,71 +15,71 @@ var expectedResults = [
1515
[134217730, 134217730],
1616
[-134217730, -134217730],
1717
[10, 10],
18-
[-10, -10]
19-
]
18+
[-10, -10],
19+
],
2020
],
2121
[
2222
divByNeg1,
2323
[
2424
[134217730, -134217730],
2525
[-134217730, 134217730],
2626
[10, -10],
27-
[-10, 10]
28-
]
27+
[-10, 10],
28+
],
2929
],
3030
[
3131
divBy2,
3232
[
3333
[134217730, 67108865],
3434
[-134217730, -67108865],
3535
[10, 5],
36-
[-10, -5]
37-
]
36+
[-10, -5],
37+
],
3838
],
3939
[
4040
divByNeg2,
4141
[
4242
[134217730, -67108865],
4343
[-134217730, 67108865],
4444
[10, -5],
45-
[-10, 5]
46-
]
45+
[-10, 5],
46+
],
4747
],
4848
[
4949
divBy4,
5050
[
5151
[134217730, 33554432],
5252
[-134217730, -33554432],
5353
[10, 2],
54-
[-10, -2]
55-
]
54+
[-10, -2],
55+
],
5656
],
5757
[
5858
divByNeg4,
5959
[
6060
[134217730, -33554432],
6161
[-134217730, 33554432],
6262
[10, -2],
63-
[-10, 2]
64-
]
63+
[-10, 2],
64+
],
6565
],
6666
[
6767
divBy134217728,
6868
[
6969
[134217730, 1],
7070
[-134217730, -1],
7171
[10, 0],
72-
[-10, 0]
73-
]
72+
[-10, 0],
73+
],
7474
],
7575
[
7676
divByNeg134217728,
7777
[
7878
[134217730, -1],
7979
[-134217730, 1],
8080
[10, 0],
81-
[-10, 0]
82-
]
81+
[-10, 0],
82+
],
8383
],
8484
// Use different functions for 64 bit arguments.
8585
[
@@ -88,35 +88,35 @@ var expectedResults = [
8888
[549755813990, 137438953497],
8989
[-549755813990, -137438953497],
9090
[288230925907525632, 72057731476881408],
91-
[-288230925907525632, -72057731476881408]
92-
]
91+
[-288230925907525632, -72057731476881408],
92+
],
9393
],
9494
[
9595
divByNeg4_,
9696
[
9797
[549755813990, -137438953497],
9898
[-549755813990, 137438953497],
9999
[288230925907525632, -72057731476881408],
100-
[-288230925907525632, 72057731476881408]
101-
]
100+
[-288230925907525632, 72057731476881408],
101+
],
102102
],
103103
[
104104
divBy549755813888,
105105
[
106106
[549755813990, 1],
107107
[-549755813990, -1],
108108
[288230925907525632, 524289],
109-
[-288230925907525632, -524289]
110-
]
109+
[-288230925907525632, -524289],
110+
],
111111
],
112112
[
113113
divByNeg549755813888,
114114
[
115115
[549755813990, -1],
116116
[-549755813990, 1],
117117
[288230925907525632, -524289],
118-
[-288230925907525632, 524289]
119-
]
118+
[-288230925907525632, 524289],
119+
],
120120
],
121121
];
122122

0 commit comments

Comments
 (0)