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:
swiftlyfalling committed 2016-06-02 18:01:13 -04:00
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() {