Skip to content

Commit

Permalink
Add support for Swift Package Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
meteochu committed Dec 31, 2016
1 parent 315c85e commit 500ca28
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -37,4 +37,5 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
.build

5 changes: 5 additions & 0 deletions Package.swift
@@ -0,0 +1,5 @@
import PackageDescription

let package = Package(
name: "Swifter"
)
6 changes: 6 additions & 0 deletions Tests/LinuxMain.swift
@@ -0,0 +1,6 @@
import XCTest
@testable import SwifterTests

XCTMain([
testCase(SwifterTests.allTests),
])
17 changes: 17 additions & 0 deletions Tests/SwifterTests/SwifterTests.swift
@@ -0,0 +1,17 @@
import XCTest
@testable import Swifter

class SwifterTests: 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(Swifter().text, "Hello, World!")
}


static var allTests : [(String, (SwifterTests) -> () throws -> Void)] {
return [
("testExample", testExample),
]
}
}

0 comments on commit 500ca28

Please sign in to comment.