diff --git a/GRDB Tests/Public/Core/Database/DatabaseTests.swift b/GRDB Tests/Public/Core/Database/DatabaseTests.swift index e56a7eac8..2e9441742 100644 --- a/GRDB Tests/Public/Core/Database/DatabaseTests.swift +++ b/GRDB Tests/Public/Core/Database/DatabaseTests.swift @@ -235,36 +235,6 @@ class DatabaseTests : GRDBTestCase { } } - // TODO: this test crash since we return metal rows -// func testRowSequenceCanBeIteratedIndependentlyFromSQLiteStatement() { -// assertNoError { -// var rows: [Row] = [] -// try dbQueue.inTransaction { db in -// try db.execute("CREATE TABLE persons (name TEXT, age INT)") -// try db.execute("INSERT INTO persons (name, age) VALUES (:name, :age)", arguments: ["name": "Arthur", "age": 41]) -// try db.execute("INSERT INTO persons (name, age) VALUES (:name, :age)", arguments: ["name": "Barbara"]) -// -// rows = Array(Row.fetch(db, "SELECT * FROM persons ORDER BY name")) -// return .Commit -// } -// -// var names: [String?] = [] -// var ages: [Int?] = [] -// -// for row in rows { -// let name: String? = row.value(named: "name") -// let age: Int? = row.value(named: "age") -// names.append(name) -// ages.append(age) -// } -// -// XCTAssertEqual(names[0]!, "Arthur") -// XCTAssertEqual(names[1]!, "Barbara") -// XCTAssertEqual(ages[0]!, 41) -// XCTAssertNil(ages[1]) -// } -// } - func testRowSequenceCanBeIteratedTwice() { assertNoError { try dbQueue.inTransaction { db in diff --git a/TODO.md b/TODO.md index 3055ae3a3..18125588d 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,6 @@ - [ ] Write test for how a fetched sequence should behave. It should contains the expected values. It can be restarted. Some of those are already written. - [ ] Update documentation (README.md and inline doc) when they metal rows are exposed, so that user is encouraged copying them. - [ ] Metal: How does the code look like when one iterates metal row and extracts NSData without copy? -- [ ] Metal: See what can be done about testRowSequenceCanBeIteratedIndependentlyFromSQLiteStatement() - [ ] Turn DatabaseIntRepresentable and DatabaseStringRepresentable into MetalType - [ ] Update or delete the "Value Extraction in Details" paragraph in README.md - [ ] Talk about MetalType. Maybe in a special "Performance" section.