File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ public struct BSONDocument {
298
298
self . storage = newStorage
299
299
self . byteLength = newSize
300
300
guard self . byteLength == self . storage. buffer. readableBytes else {
301
- fatalError ( " BSONDocument's encoded byte length is \( self . byteLength) however the " +
301
+ fatalError ( " BSONDocument's encoded byte length is \( self . byteLength) , however the " +
302
302
" buffer has \( self . storage. buffer. readableBytes) readable bytes " )
303
303
}
304
304
}
Original file line number Diff line number Diff line change @@ -251,10 +251,11 @@ final class BSONCorpusTests: BSONTestCase {
251
251
expect ( try decoder. decode ( BSONDocument . self, from: testData) )
252
252
. to ( throwError ( errorType: DecodingError . self) , description: description)
253
253
case . decimal128:
254
- continue // TODO: SWIFT-968
254
+ expect ( try BSONDecimal128 ( test. string) )
255
+ . to ( throwError ( ) , description: description)
255
256
default :
256
257
throw TestError (
257
- message: " \( description) : parse error tests not implemented "
258
+ message: " \( description) : parse error tests not implemented "
258
259
+ " for bson type \( testFile. bsonType) "
259
260
)
260
261
}
You can’t perform that action at this time.
0 commit comments