diff --git a/Apps/Locations/Libraries/Package.swift b/Apps/Locations/Libraries/Package.swift index 27b9b9e..0a0161e 100644 --- a/Apps/Locations/Libraries/Package.swift +++ b/Apps/Locations/Libraries/Package.swift @@ -15,9 +15,21 @@ let package = Package( dependencies: [], targets: [ .target( - name: "Locations", + name: "APICore", dependencies: [] ), + .target( + name: "Locations", + dependencies: [ + "APICore" + ] + ), + .testTarget( + name: "APICoreTests", + dependencies: [ + "APICore" + ] + ), .testTarget( name: "LocationsTests", dependencies: [ diff --git a/Apps/Locations/Libraries/Sources/APICore/Libraries.swift b/Apps/Locations/Libraries/Sources/APICore/Libraries.swift new file mode 100644 index 0000000..c1536b6 --- /dev/null +++ b/Apps/Locations/Libraries/Sources/APICore/Libraries.swift @@ -0,0 +1,6 @@ +public struct Libraries { + public private(set) var text = "Hello, World!" + + public init() { + } +} diff --git a/Apps/Locations/Libraries/Tests/APICoreTests/LibrariesTests.swift b/Apps/Locations/Libraries/Tests/APICoreTests/LibrariesTests.swift new file mode 100644 index 0000000..dd47066 --- /dev/null +++ b/Apps/Locations/Libraries/Tests/APICoreTests/LibrariesTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import Libraries + +final class LibrariesTests: XCTestCase { + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + XCTAssertEqual(Libraries().text, "Hello, World!") + } +}