mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib tests: replace '__FILE__' and '__LINE__' with '#file' and '#line'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user