mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Increase test coverage of DatabaseDateComponents.swift
Test init from nil NSDateComponents case.
This commit is contained in:
1 parent
e06bcab62b
commit
0506d47a4f
1 file changed
+4
@@ -382,4 +382,8 @@ class NSDateComponentsTests : GRDBTestCase {
|
||||
let databaseDateComponents = DatabaseDateComponents.fromDatabaseValue("foo".databaseValue)
|
||||
XCTAssertTrue(databaseDateComponents == nil)
|
||||
}
|
||||
|
||||
func testDatabaseDateComponentsFailureFromNilNSDateComponents() {
|
||||
XCTAssertNil(DatabaseDateComponents(nil, format: .YMD))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user