@@ -47,15 +47,15 @@ class SQLiteTestCase : XCTestCase {
47
47
)
48
48
}
49
49
50
- func AssertSQL( SQL: String , _ executions: Int = 1 , _ message: String ? = nil , file: String = __FILE__ , line: UInt = __LINE__ ) {
50
+ func AssertSQL( SQL: String , _ executions: Int = 1 , _ message: String ? = nil , file: StaticString = #file , line: UInt = #line ) {
51
51
XCTAssertEqual (
52
52
executions, trace [ SQL] ?? 0 ,
53
53
message ?? SQL,
54
54
file: file, line: line
55
55
)
56
56
}
57
57
58
- func AssertSQL( SQL: String , _ statement: Statement , _ message: String ? = nil , file: String = __FILE__ , line: UInt = __LINE__ ) {
58
+ func AssertSQL( SQL: String , _ statement: Statement , _ message: String ? = nil , file: StaticString = #file , line: UInt = #line ) {
59
59
try ! statement. run ( )
60
60
AssertSQL ( SQL, 1 , message, file: file, line: line)
61
61
if let count = trace [ SQL] { trace [ SQL] = count - 1 }
@@ -96,11 +96,11 @@ let int64Optional = Expression<Int64?>("int64Optional")
96
96
let string = Expression < String > ( " string " )
97
97
let stringOptional = Expression < String ? > ( " stringOptional " )
98
98
99
- func AssertSQL( @autoclosure expression1: ( ) -> String , @autoclosure _ expression2: ( ) -> Expressible , file: String = __FILE__ , line: UInt = __LINE__ ) {
99
+ func AssertSQL( @autoclosure expression1: ( ) -> String , @autoclosure _ expression2: ( ) -> Expressible , file: StaticString = #file , line: UInt = #line ) {
100
100
XCTAssertEqual ( expression1 ( ) , expression2 ( ) . asSQL ( ) , file: file, line: line)
101
101
}
102
102
103
- func AssertThrows< T> ( @autoclosure expression: ( ) throws -> T , file: String = __FILE__ , line: UInt = __LINE__ ) {
103
+ func AssertThrows< T> ( @autoclosure expression: ( ) throws -> T , file: StaticString = #file , line: UInt = #line ) {
104
104
do {
105
105
try expression ( )
106
106
XCTFail ( " expression expected to throw " , file: file, line: line)
0 commit comments