From 229fb36074e6e96870587afebce63454c6eccb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 5 Jul 2020 16:23:19 +0200 Subject: [PATCH] Fix test --- Tests/GRDBTests/QueryInterfaceRequestTests.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/GRDBTests/QueryInterfaceRequestTests.swift b/Tests/GRDBTests/QueryInterfaceRequestTests.swift index d2571b11f..ccb77d1ba 100644 --- a/Tests/GRDBTests/QueryInterfaceRequestTests.swift +++ b/Tests/GRDBTests/QueryInterfaceRequestTests.swift @@ -910,16 +910,16 @@ class QueryInterfaceRequestTests: GRDBTestCase { XCTAssertEqual(lastSQLQuery, "SELECT MAX(\"id\") FROM \"readers\"") } do { - _ = try Row.fetchOne(db, tableRequest.select(min(Column("score")).forKey("minScore"), max(Column("score")).forKey("maxScore"))) - XCTAssertEqual(lastSQLQuery, "SELECT MIN(\"score\") AS \"minScore\", MAX(\"score\") AS \"maxScore\" FROM \"readers\"") + _ = try Row.fetchOne(db, tableRequest.select(min(Column("age")).forKey("minAge"), max(Column("age")).forKey("maxAge"))) + XCTAssertEqual(lastSQLQuery, "SELECT MIN(\"age\") AS \"minAge\", MAX(\"age\") AS \"maxAge\" FROM \"readers\"") } do { - _ = try Row.fetchOne(db, tableRequest.select(max(Column("score") + 1))) - XCTAssertEqual(lastSQLQuery, "SELECT MAX(\"score\" + 1) FROM \"readers\"") + _ = try Row.fetchOne(db, tableRequest.select(max(Column("age") + 1))) + XCTAssertEqual(lastSQLQuery, "SELECT MAX(\"age\" + 1) FROM \"readers\"") } do { - _ = try Row.fetchOne(db, tableRequest.select(max(Column("score")) + 1)) - XCTAssertEqual(lastSQLQuery, "SELECT MAX(\"score\") + 1 FROM \"readers\"") + _ = try Row.fetchOne(db, tableRequest.select(max(Column("age")) + 1)) + XCTAssertEqual(lastSQLQuery, "SELECT MAX(\"age\") + 1 FROM \"readers\"") } } }