@@ -5,8 +5,8 @@ import SQLite
5
5
#if !os(Linux)
6
6
7
7
class CustomFunctionNoArgsTests : SQLiteTestCase {
8
- typealias FunctionNoOptional = ( ) -> Expression < String >
9
- typealias FunctionResultOptional = ( ) -> Expression < String ? >
8
+ typealias FunctionNoOptional = ( ) -> SQLite . Expression < String >
9
+ typealias FunctionResultOptional = ( ) -> SQLite . Expression < String ? >
10
10
11
11
func testFunctionNoOptional( ) throws {
12
12
let _: FunctionNoOptional = try db. createFunction ( " test " , deterministic: true ) {
@@ -26,10 +26,10 @@ class CustomFunctionNoArgsTests: SQLiteTestCase {
26
26
}
27
27
28
28
class CustomFunctionWithOneArgTests : SQLiteTestCase {
29
- typealias FunctionNoOptional = ( Expression < String > ) -> Expression < String >
30
- typealias FunctionLeftOptional = ( Expression < String ? > ) -> Expression < String >
31
- typealias FunctionResultOptional = ( Expression < String > ) -> Expression < String ? >
32
- typealias FunctionLeftResultOptional = ( Expression < String ? > ) -> Expression < String ? >
29
+ typealias FunctionNoOptional = ( SQLite . Expression < String > ) -> SQLite . Expression < String >
30
+ typealias FunctionLeftOptional = ( SQLite . Expression < String ? > ) -> SQLite . Expression < String >
31
+ typealias FunctionResultOptional = ( SQLite . Expression < String > ) -> SQLite . Expression < String ? >
32
+ typealias FunctionLeftResultOptional = ( SQLite . Expression < String ? > ) -> SQLite . Expression < String ? >
33
33
34
34
func testFunctionNoOptional( ) throws {
35
35
let _: FunctionNoOptional = try db. createFunction ( " test " , deterministic: true ) { a in
@@ -65,14 +65,14 @@ class CustomFunctionWithOneArgTests: SQLiteTestCase {
65
65
}
66
66
67
67
class CustomFunctionWithTwoArgsTests : SQLiteTestCase {
68
- typealias FunctionNoOptional = ( Expression < String > , Expression < String > ) -> Expression < String >
69
- typealias FunctionLeftOptional = ( Expression < String ? > , Expression < String > ) -> Expression < String >
70
- typealias FunctionRightOptional = ( Expression < String > , Expression < String ? > ) -> Expression < String >
71
- typealias FunctionResultOptional = ( Expression < String > , Expression < String > ) -> Expression < String ? >
72
- typealias FunctionLeftRightOptional = ( Expression < String ? > , Expression < String ? > ) -> Expression < String >
73
- typealias FunctionLeftResultOptional = ( Expression < String ? > , Expression < String > ) -> Expression < String ? >
74
- typealias FunctionRightResultOptional = ( Expression < String > , Expression < String ? > ) -> Expression < String ? >
75
- typealias FunctionLeftRightResultOptional = ( Expression < String ? > , Expression < String ? > ) -> Expression < String ? >
68
+ typealias FunctionNoOptional = ( SQLite . Expression < String > , SQLite . Expression < String > ) -> SQLite . Expression < String >
69
+ typealias FunctionLeftOptional = ( SQLite . Expression < String ? > , SQLite . Expression < String > ) -> SQLite . Expression < String >
70
+ typealias FunctionRightOptional = ( SQLite . Expression < String > , SQLite . Expression < String ? > ) -> SQLite . Expression < String >
71
+ typealias FunctionResultOptional = ( SQLite . Expression < String > , SQLite . Expression < String > ) -> SQLite . Expression < String ? >
72
+ typealias FunctionLeftRightOptional = ( SQLite . Expression < String ? > , SQLite . Expression < String ? > ) -> SQLite . Expression < String >
73
+ typealias FunctionLeftResultOptional = ( SQLite . Expression < String ? > , SQLite . Expression < String > ) -> SQLite . Expression < String ? >
74
+ typealias FunctionRightResultOptional = ( SQLite . Expression < String > , SQLite . Expression < String ? > ) -> SQLite . Expression < String ? >
75
+ typealias FunctionLeftRightResultOptional = ( SQLite . Expression < String ? > , SQLite . Expression < String ? > ) -> SQLite . Expression < String ? >
76
76
77
77
func testNoOptional( ) throws {
78
78
let _: FunctionNoOptional = try db. createFunction ( " test " , deterministic: true ) { a, b in
0 commit comments