Better naming

This commit is contained in:
cdricms
2025-07-19 13:02:19 +02:00
parent 9e43d41781
commit 9ecd335808
3 changed files with 7 additions and 7 deletions

View File

@@ -4,21 +4,21 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "units", name: "Units",
products: [ products: [
// Products define the executables and libraries a package produces, making them visible to other packages. // Products define the executables and libraries a package produces, making them visible to other packages.
.library( .library(
name: "units", name: "Units",
targets: ["units"]) targets: ["Units"])
], ],
targets: [ targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite. // Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies. // Targets can depend on other targets in this package and products from dependencies.
.target( .target(
name: "units"), name: "Units"),
.testTarget( .testTarget(
name: "unitsTests", name: "UnitsTests",
dependencies: ["units"] dependencies: ["Units"]
), ),
] ]
) )

View File

@@ -1,6 +1,6 @@
import Testing import Testing
@testable import units @testable import Units
@Test func example() async throws { @Test func example() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions. // Write your test here and use APIs like `#expect(...)` to check expected conditions.