Skip to content

Commit be3a5ce

Browse files
committed
remove swiftlint line_length disables
1 parent 3fac726 commit be3a5ce

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Tests/SQLiteTests/QueryTests.swift

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,14 @@ class QueryTests: XCTestCase {
300300
let insert = try emails.insert(value)
301301
let encodedJSON = try JSONEncoder().encode(value1)
302302
let encodedJSONString = String(data: encodedJSON, encoding: .utf8)!
303-
// swiftlint:disable line_length
304303
assertSQL(
305304
"""
306305
INSERT INTO \"emails\" (\"int\", \"string\", \"bool\", \"float\", \"double\", \"date\", \"uuid\", \"optional\",
307-
\"sub\") VALUES (1, '2', 1, 3.0, 4.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F', 'optional', '\(encodedJSONString)')
306+
\"sub\") VALUES (1, '2', 1, 3.0, 4.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F',
307+
'optional', '\(encodedJSONString)')
308308
""".replacingOccurrences(of: "\n", with: ""),
309309
insert
310310
)
311-
// swiftlint:enable line_length
312311
}
313312
#endif
314313

@@ -354,17 +353,16 @@ class QueryTests: XCTestCase {
354353
let value = TestCodable(int: 1, string: "2", bool: true, float: 3, double: 4,
355354
date: Date(timeIntervalSince1970: 0), uuid: testUUIDValue, optional: nil, sub: nil)
356355
let insert = try emails.upsert(value, onConflictOf: string)
357-
// swiftlint:disable line_length
358356
assertSQL(
359357
"""
360358
INSERT INTO \"emails\" (\"int\", \"string\", \"bool\", \"float\", \"double\", \"date\", \"uuid\")
361359
VALUES (1, '2', 1, 3.0, 4.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F') ON CONFLICT (\"string\")
362360
DO UPDATE SET \"int\" = \"excluded\".\"int\", \"bool\" = \"excluded\".\"bool\",
363-
\"float\" = \"excluded\".\"float\", \"double\" = \"excluded\".\"double\", \"date\" = \"excluded\".\"date\", \"uuid\" = \"excluded\".\"uuid\"
361+
\"float\" = \"excluded\".\"float\", \"double\" = \"excluded\".\"double\", \"date\" = \"excluded\".\"date\",
362+
\"uuid\" = \"excluded\".\"uuid\"
364363
""".replacingOccurrences(of: "\n", with: ""),
365364
insert
366365
)
367-
// swiftlint:enable line_length
368366
}
369367

370368
func test_insert_many_encodable() throws {
@@ -376,16 +374,15 @@ class QueryTests: XCTestCase {
376374
let value3 = TestCodable(int: 3, string: "4", bool: true, float: 3, double: 6,
377375
date: Date(timeIntervalSince1970: 0), uuid: testUUIDValue, optional: nil, sub: nil)
378376
let insert = try emails.insertMany([value1, value2, value3])
379-
// swiftlint:disable line_length
380377
assertSQL(
381378
"""
382379
INSERT INTO \"emails\" (\"int\", \"string\", \"bool\", \"float\", \"double\", \"date\", \"uuid\")
383-
VALUES (1, '2', 1, 3.0, 4.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F'), (2, '3', 1, 3.0, 5.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F'),
380+
VALUES (1, '2', 1, 3.0, 4.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F'),
381+
(2, '3', 1, 3.0, 5.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F'),
384382
(3, '4', 1, 3.0, 6.0, '1970-01-01T00:00:00.000', 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F')
385383
""".replacingOccurrences(of: "\n", with: ""),
386384
insert
387385
)
388-
// swiftlint:enable line_length
389386
}
390387

391388
func test_update_compilesUpdateExpression() {

0 commit comments

Comments
 (0)