From b29f35b39a7c8b4c92d5918a6f0799e8dec598b0 Mon Sep 17 00:00:00 2001 From: Lennard Sprong Date: Mon, 20 Oct 2025 08:55:21 +0200 Subject: [PATCH] Don't use `@testable` import in Date tests --- Tests/PropertyBasedTests/GenTests+Date.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Tests/PropertyBasedTests/GenTests+Date.swift b/Tests/PropertyBasedTests/GenTests+Date.swift index 2cd368c..ba0de33 100644 --- a/Tests/PropertyBasedTests/GenTests+Date.swift +++ b/Tests/PropertyBasedTests/GenTests+Date.swift @@ -8,7 +8,15 @@ #if canImport(Foundation) import Testing import Foundation -@testable import PropertyBased +import PropertyBased + +extension Calendar { + static var neutral: Calendar { + var cal = Calendar(identifier: .iso8601) + cal.timeZone = TimeZone(secondsFromGMT: 0)! + return cal + } +} @Suite struct GenDateTests { @Test func testGenerateDateTime() async {