stdlib tests: replace '__FILE__' and '__LINE__' with '#file' and '#line'

This commit is contained in:
Dmitri Gribenko
2016-02-18 18:48:29 -08:00
parent 13cc88f694
commit a73390c06d
6 changed files with 16 additions and 11 deletions

View File

@@ -204,7 +204,7 @@ struct UTF8Test {
init(
_ scalars: [UInt32], _ encoded: [UInt8],
file: String = __FILE__, line: UInt = __LINE__
file: String = #file, line: UInt = #line
) {
self.scalars = scalars
self.encoded = encoded
@@ -413,7 +413,7 @@ struct UTF16Test {
init(
_ scalarsHead: [UInt32], _ scalarsRepairedTail: [UInt32],
_ encoded: [UInt16],
file: String = __FILE__, line: UInt = __LINE__
file: String = #file, line: UInt = #line
) {
self.scalarsHead = scalarsHead
self.scalarsRepairedTail = scalarsRepairedTail