mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Increase test coverage of Row+Foundation.swift
Add missing test to verify initialization failure if NSDictionary has invalid (non-String) keys.
This commit is contained in:
1 parent
90061a4b25
commit
e06bcab62b
1 file changed
+4
@@ -13,6 +13,10 @@ class RowFoundationTests: GRDBTestCase {
|
||||
let dictionary: NSDictionary = ["a": NSObject()]
|
||||
let row = Row(dictionary)
|
||||
XCTAssertTrue(row == nil)
|
||||
|
||||
let dictionaryInvalidKeyType: NSDictionary = [NSNumber(integer: 1): "bar"]
|
||||
let row2 = Row(dictionaryInvalidKeyType)
|
||||
XCTAssertTrue(row2 == nil)
|
||||
}
|
||||
|
||||
func testRowFromNSDictionary() {
|
||||
|
||||
Reference in new issue
Block a user