diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..322d392 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:4.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "Combinatorics", + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "Combinatorics", + targets: ["Combinatorics"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages which this package depends on. + .target( + name: "Combinatorics", + dependencies: []), + .testTarget( + name: "CombinatoricsTests", + dependencies: ["Combinatorics"]), + ] +) diff --git a/Sources/Combinatorics/Combinatorics.swift b/Sources/Combinatorics/Combinatorics.swift new file mode 120000 index 0000000..b4651c9 --- /dev/null +++ b/Sources/Combinatorics/Combinatorics.swift @@ -0,0 +1 @@ +../../Combinatorics/Combinatorics.swift \ No newline at end of file diff --git a/Tests/CombinatoricsTests/CombinatoricsTests.swift b/Tests/CombinatoricsTests/CombinatoricsTests.swift new file mode 120000 index 0000000..2d56595 --- /dev/null +++ b/Tests/CombinatoricsTests/CombinatoricsTests.swift @@ -0,0 +1 @@ +../../CombinatoricsTests/CombinatoricsTests.swift \ No newline at end of file diff --git a/Tests/CombinatoricsTests/XCTestManifests.swift b/Tests/CombinatoricsTests/XCTestManifests.swift new file mode 100644 index 0000000..b8c3656 --- /dev/null +++ b/Tests/CombinatoricsTests/XCTestManifests.swift @@ -0,0 +1,9 @@ +import XCTest + +#if !os(macOS) +public func allTests() -> [XCTestCaseEntry] { + return [ + testCase(CombinatoricsTests.allTests), + ] +} +#endif \ No newline at end of file diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift new file mode 100644 index 0000000..cde48b4 --- /dev/null +++ b/Tests/LinuxMain.swift @@ -0,0 +1,7 @@ +import XCTest + +import CombinatoricsTests + +var tests = [XCTestCaseEntry]() +tests += CombinatoricsTests.allTests() +XCTMain(tests) \ No newline at end of file