Skip to content

Commit 7059858

Browse files
authored
Don't use @testable import in Date tests
1 parent ca8d8e5 commit 7059858

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Tests/PropertyBasedTests/GenTests+Date.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
#if canImport(Foundation)
99
import Testing
1010
import Foundation
11-
@testable import PropertyBased
11+
import PropertyBased
12+
13+
extension Calendar {
14+
static var neutral: Calendar {
15+
var cal = Calendar(identifier: .iso8601)
16+
cal.timeZone = TimeZone(secondsFromGMT: 0)!
17+
return cal
18+
}
19+
}
1220

1321
@Suite struct GenDateTests {
1422
@Test func testGenerateDateTime() async {

0 commit comments

Comments
 (0)