@@ -89,25 +89,25 @@ final class EpochsTests: XCTestCase {
89
89
90
90
// `inBatches` is lazy so no elements were accessed.
91
91
XCTAssert (
92
- dataset. accessed. allSatisfy ( ) { !$0 } ,
92
+ dataset. accessed. allSatisfy { !$0 } ,
93
93
" No elements should have been accessed yet. " )
94
94
for (i, batch) in batches. enumerated ( ) {
95
95
// Elements are not accessed until we do something with `batch` so only
96
96
// the elements up to `i * batchSize` have been accessed yet.
97
97
XCTAssert (
98
- dataset. accessed [ ..< ( i * batchSize) ] . allSatisfy ( ) { $0 } ,
98
+ dataset. accessed [ ..< ( i * batchSize) ] . allSatisfy { $0 } ,
99
99
" Not all elements prior to \( i * batchSize) have been accessed. " )
100
100
XCTAssert (
101
- dataset. accessed [ ( i * batchSize) ... ] . allSatisfy ( ) { !$0 } ,
101
+ dataset. accessed [ ( i * batchSize) ... ] . allSatisfy { !$0 } ,
102
102
" Some elements after \( i * batchSize) have been accessed. " )
103
103
let _ = Array ( batch)
104
104
let limit = ( i + 1 ) * batchSize
105
105
// We accessed elements up to `limit` but no further.
106
106
XCTAssert (
107
- dataset. accessed [ ..< limit] . allSatisfy ( ) { $0 } ,
107
+ dataset. accessed [ ..< limit] . allSatisfy { $0 } ,
108
108
" Not all elements prior to \( limit) have been accessed. " )
109
109
XCTAssert (
110
- dataset. accessed [ limit... ] . allSatisfy ( ) { !$0 } ,
110
+ dataset. accessed [ limit... ] . allSatisfy { !$0 } ,
111
111
" Some elements after \( limit) have been accessed. " )
112
112
}
113
113
}
@@ -178,7 +178,7 @@ final class EpochsTests: XCTestCase {
178
178
179
179
// `inBatches` is lazy so no elements were accessed.
180
180
XCTAssert (
181
- dataset. accessed. allSatisfy ( ) { !$0 } ,
181
+ dataset. accessed. allSatisfy { !$0 } ,
182
182
" No elements should have been accessed yet. " )
183
183
for batches in epochs {
184
184
for (i, batch) in batches. enumerated ( ) {
@@ -223,7 +223,7 @@ final class EpochsTests: XCTestCase {
223
223
for k in 0 ..< 64 {
224
224
let currentShape = nonuniformDataset [ i * 64 + k] . shape [ 0 ]
225
225
let paddedPart =
226
- atStart ? b [ k, 0 ..< ( expectedShape- currentShape) ] : ( b [ k, currentShape..< expectedShape] )
226
+ atStart ? b [ k, 0 ..< ( expectedShape - currentShape) ] : ( b [ k, currentShape..< expectedShape] )
227
227
XCTAssertEqual (
228
228
paddedPart,
229
229
Tensor < Int32 > (
0 commit comments