mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Drop obsolete test about invalid Array(Row.fetch(…)).
This commit is contained in:
1 parent
c16621568b
commit
2163daf71d
2 files changed
-31
No files matched your search
@@ -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
|
||||
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user