Defined the APICore library in the Libraries package for the Locations target.

This commit is contained in:
Javier Cicchelli 2023-04-10 12:59:50 +02:00
parent e925048aa8
commit 30b84f735b
3 changed files with 30 additions and 1 deletions

View File

@ -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: [

View File

@ -0,0 +1,6 @@
public struct Libraries {
public private(set) var text = "Hello, World!"
public init() {
}
}

View File

@ -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!")
}
}