diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02c0875 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..0dbde33 --- /dev/null +++ b/Package.swift @@ -0,0 +1,5 @@ +import PackageDescription + +let package = Package( + name: "SwiftTweetsKit" +) diff --git a/Sources/SwiftTweetsKit.swift b/Sources/SwiftTweetsKit.swift new file mode 100644 index 0000000..27dc075 --- /dev/null +++ b/Sources/SwiftTweetsKit.swift @@ -0,0 +1,4 @@ +struct SwiftTweetsKit { + + var text = "Hello, World!" +} diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift new file mode 100644 index 0000000..cdfb5e3 --- /dev/null +++ b/Tests/LinuxMain.swift @@ -0,0 +1,6 @@ +import XCTest +@testable import SwiftTweetsKitTests + +XCTMain([ + testCase(SwiftTweetsKitTests.allTests), +]) diff --git a/Tests/SwiftTweetsKitTests/SwiftTweetsKitTests.swift b/Tests/SwiftTweetsKitTests/SwiftTweetsKitTests.swift new file mode 100644 index 0000000..7023554 --- /dev/null +++ b/Tests/SwiftTweetsKitTests/SwiftTweetsKitTests.swift @@ -0,0 +1,17 @@ +import XCTest +@testable import SwiftTweetsKit + +class SwiftTweetsKitTests: 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(SwiftTweetsKit().text, "Hello, World!") + } + + + static var allTests : [(String, (SwiftTweetsKitTests) -> () throws -> Void)] { + return [ + ("testExample", testExample), + ] + } +}