import Foundation import Testing @testable import Shotdeck @testable import ShotdeckCore @Test("DubaiTime.checkTime formats as HH:MM Dubai") func dubaiTimeCheckTimeFormat() { let testDate = Date(timeIntervalSince1970: 1725458520) // 2024-09-04 10:42:00 UTC let result = DubaiTime.checkTime(testDate) // The format should be HH:MM Dubai (24-hour time in Dubai timezone) // Dubai is UTC+4, so a UTC time needs conversion let pattern = "^[0-9]{2}:[0-9]{2} Dubai$" let regex = try? NSRegularExpression(pattern: pattern, options: []) let range = NSRange(result.startIndex..