From 9ecd335808bc87d52673396ab48a2e7785bca99c Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Sat, 19 Jul 2025 13:02:19 +0200 Subject: [PATCH] Better naming --- Package.swift | 12 ++++++------ Sources/{units/units.swift => Units/Units.swift} | 0 .../unitsTests.swift => UnitsTests/UnitsTests.swift} | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename Sources/{units/units.swift => Units/Units.swift} (100%) rename Tests/{unitsTests/unitsTests.swift => UnitsTests/UnitsTests.swift} (90%) diff --git a/Package.swift b/Package.swift index 3740fe9..197cafc 100644 --- a/Package.swift +++ b/Package.swift @@ -4,21 +4,21 @@ import PackageDescription let package = Package( - name: "units", + name: "Units", products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( - name: "units", - targets: ["units"]) + name: "Units", + targets: ["Units"]) ], targets: [ // 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. .target( - name: "units"), + name: "Units"), .testTarget( - name: "unitsTests", - dependencies: ["units"] + name: "UnitsTests", + dependencies: ["Units"] ), ] ) diff --git a/Sources/units/units.swift b/Sources/Units/Units.swift similarity index 100% rename from Sources/units/units.swift rename to Sources/Units/Units.swift diff --git a/Tests/unitsTests/unitsTests.swift b/Tests/UnitsTests/UnitsTests.swift similarity index 90% rename from Tests/unitsTests/unitsTests.swift rename to Tests/UnitsTests/UnitsTests.swift index 3de808e..ed0335c 100644 --- a/Tests/unitsTests/unitsTests.swift +++ b/Tests/UnitsTests/UnitsTests.swift @@ -1,6 +1,6 @@ import Testing -@testable import units +@testable import Units @Test func example() async throws { // Write your test here and use APIs like `#expect(...)` to check expected conditions.