Skip to content

Commit cfa6010

Browse files
committed
Split test cases
1 parent 0dfc7b0 commit cfa6010

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Tests/SQLiteTests/QueryTests.swift

+9-5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ class QueryTests: XCTestCase {
6161

6262
func test_union_compilesUnionClause() {
6363
assertSQL("SELECT * FROM \"users\" UNION SELECT * FROM \"posts\"", users.union(posts))
64+
}
65+
66+
func test_union_compilesUnionAllClause() {
6467
assertSQL("SELECT * FROM \"users\" UNION ALL SELECT * FROM \"posts\"", users.union(all: true, posts))
6568
}
6669

@@ -232,21 +235,22 @@ class QueryTests: XCTestCase {
232235
temp.with(temp, as: users))
233236
}
234237

235-
func test_with_recursive_compilesWithClause() {
238+
func test_with_compilesWithRecursiveClause() {
236239
let temp = Table("temp")
237240

238241
assertSQL("WITH RECURSIVE \"temp\" AS (SELECT * FROM \"users\") SELECT * FROM \"temp\"",
239242
temp.with(temp, recursive: true, as: users))
240-
241-
assertSQL("WITH \"temp\" AS (SELECT * FROM \"users\") SELECT * FROM \"temp\"",
242-
temp.with(temp, recursive: false, as: users))
243243
}
244244

245-
func test_with_materialization_compilesWithClause() {
245+
func test_with_compilesWithMaterializedClause() {
246246
let temp = Table("temp")
247247

248248
assertSQL("WITH \"temp\" AS MATERIALIZED (SELECT * FROM \"users\") SELECT * FROM \"temp\"",
249249
temp.with(temp, hint: .materialized, as: users))
250+
}
251+
252+
func test_with_compilesWithNotMaterializedClause() {
253+
let temp = Table("temp")
250254

251255
assertSQL("WITH \"temp\" AS NOT MATERIALIZED (SELECT * FROM \"users\") SELECT * FROM \"temp\"",
252256
temp.with(temp, hint: .notMaterialized, as: users))

0 commit comments

Comments
 (0)