mirror of
https://github.com/apple/swift-http-types
synced 2026-11-27 05:04:21 +00:00
Stop using Foundation on platforms with FoundationEssentials (#108)
Resolves #107
This commit is contained in:
1 parent
9410f6b9a3
commit
45eb022491
2 files changed
+11
-13
No files matched your search
@@ -50,11 +50,11 @@ final class HTTPTypesURLTests: XCTestCase {
|
||||
let request5 = HTTPRequest(url: URL(string: "data:,Hello%2C%20World%21")!)
|
||||
XCTAssertEqual(request5.scheme, "data")
|
||||
XCTAssertNil(request5.authority)
|
||||
#if canImport(CoreFoundation)
|
||||
#if !canImport(FoundationEssentials)
|
||||
XCTAssertEqual(request5.path, "/")
|
||||
#else // canImport(CoreFoundation)
|
||||
#else // !canImport(FoundationEssentials)
|
||||
XCTAssertEqual(request5.path, ",Hello%2C%20World%21")
|
||||
#endif // canImport(CoreFoundation)
|
||||
#endif // !canImport(FoundationEssentials)
|
||||
XCTAssertNil(request5.url)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user