File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -290,12 +290,12 @@ describe("PathKit") {
290
290
let current = Path . current
291
291
let error = ThrowError ( )
292
292
293
- try expect {
293
+ try expect ( {
294
294
try Path ( " /usr/bin " ) . chdir {
295
295
try expect ( Path . current) == Path ( " /usr/bin " )
296
296
throw error
297
297
}
298
- } . toThrow ( error)
298
+ } ) . toThrow ( error)
299
299
300
300
try expect ( Path . current) == current
301
301
}
@@ -324,9 +324,9 @@ describe("PathKit") {
324
324
$0. it ( " errors when you read from a non-existing file as NSData " ) {
325
325
let path = Path ( " /tmp/pathkit-testing " )
326
326
327
- try expect {
327
+ try expect ( {
328
328
try path. read ( ) as Data
329
- } . toThrow ( )
329
+ } ) . toThrow ( )
330
330
}
331
331
332
332
$0. it ( " can read a String from a file " ) {
@@ -339,9 +339,9 @@ describe("PathKit") {
339
339
$0. it ( " errors when you read from a non-existing file as a String " ) {
340
340
let path = Path ( " /tmp/pathkit-testing " )
341
341
342
- try expect {
342
+ try expect ( {
343
343
try path. read ( ) as String
344
- } . toThrow ( )
344
+ } ) . toThrow ( )
345
345
}
346
346
}
347
347
@@ -364,9 +364,9 @@ describe("PathKit") {
364
364
let path = Path ( " / " )
365
365
let data = " Hi " . data ( using: String . Encoding. utf8, allowLossyConversion: true )
366
366
367
- try expect {
367
+ try expect ( {
368
368
try path. write ( data!)
369
- } . toThrow ( )
369
+ } ) . toThrow ( )
370
370
#endif
371
371
}
372
372
@@ -384,9 +384,9 @@ describe("PathKit") {
384
384
#else
385
385
let path = Path ( " / " )
386
386
387
- try expect {
387
+ try expect ( {
388
388
try path. write ( " hi " )
389
- } . toThrow ( )
389
+ } ) . toThrow ( )
390
390
#endif
391
391
}
392
392
}
You can’t perform that action at this time.
0 commit comments