commit 831010d672c6700aff8feebfa65260bb60ec0c76
Author: FIGBERT <figbert@figbert.com>
Date: Sat, 24 Apr 2021 13:23:47 -0700
Initial commit
Diffstat:
9 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,5 @@
+.DS_Store
+/.build
+/Packages
+/*.xcodeproj
+xcuserdata/
diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:">
+ </FileRef>
+</Workspace>
diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/Package.swift b/Package.swift
@@ -0,0 +1,20 @@
+// swift-tools-version:5.3
+import PackageDescription
+
+let package = Package(
+ name: "SwiftGemini",
+ products: [
+ .library(
+ name: "SwiftGemini",
+ targets: ["SwiftGemini"]),
+ ],
+ dependencies: [],
+ targets: [
+ .target(
+ name: "SwiftGemini",
+ dependencies: []),
+ .testTarget(
+ name: "SwiftGeminiTests",
+ dependencies: ["SwiftGemini"]),
+ ]
+)
diff --git a/README.md b/README.md
@@ -0,0 +1,3 @@
+# SwiftGemini
+
+A description of this package.
diff --git a/Sources/SwiftGemini/SwiftGemini.swift b/Sources/SwiftGemini/SwiftGemini.swift
@@ -0,0 +1,3 @@
+struct SwiftGemini {
+ var text = "Hello, World!"
+}
diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift
@@ -0,0 +1,7 @@
+import XCTest
+
+import SwiftGeminiTests
+
+var tests = [XCTestCaseEntry]()
+tests += SwiftGeminiTests.allTests()
+XCTMain(tests)
diff --git a/Tests/SwiftGeminiTests/SwiftGeminiTests.swift b/Tests/SwiftGeminiTests/SwiftGeminiTests.swift
@@ -0,0 +1,15 @@
+import XCTest
+@testable import SwiftGemini
+
+final class SwiftGeminiTests: XCTestCase {
+ func testExample() {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct
+ // results.
+ XCTAssertEqual(SwiftGemini().text, "Hello, World!")
+ }
+
+ static var allTests = [
+ ("testExample", testExample),
+ ]
+}
diff --git a/Tests/SwiftGeminiTests/XCTestManifests.swift b/Tests/SwiftGeminiTests/XCTestManifests.swift
@@ -0,0 +1,9 @@
+import XCTest
+
+#if !canImport(ObjectiveC)
+public func allTests() -> [XCTestCaseEntry] {
+ return [
+ testCase(SwiftGeminiTests.allTests),
+ ]
+}
+#endif