Created package; Installed Bits package
This commit is contained in:
commit
a738a5be40
|
@ -0,0 +1,4 @@
|
|||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"object": {
|
||||
"pins": [
|
||||
{
|
||||
"package": "Bits",
|
||||
"repositoryURL": "https://github.com/vapor/bits.git",
|
||||
"state": {
|
||||
"branch": null,
|
||||
"revision": "c32f5e6ae2007dccd21a92b7e33eba842dd80d2f",
|
||||
"version": "1.1.0"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"version": 1
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
// swift-tools-version:4.0
|
||||
import PackageDescription
|
||||
let package = Package(
|
||||
name: "CSV",
|
||||
products: [
|
||||
.library(name: "CSV", targets: ["CSV"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/vapor/bits.git", .exact("1.1.0"))
|
||||
],
|
||||
targets: [
|
||||
.target(name: "CSV", dependencies: ["Bits"]),
|
||||
.testTarget(name: "CSVTests", dependencies: ["CSV"]),
|
||||
]
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
struct CSV {
|
||||
var text = "Hello, World!"
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
import XCTest
|
||||
@testable import CSV
|
||||
|
||||
class CSVTests: 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(CSV().text, "Hello, World!")
|
||||
}
|
||||
|
||||
|
||||
static var allTests = [
|
||||
("testExample", testExample),
|
||||
]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
import XCTest
|
||||
@testable import CSVTests
|
||||
|
||||
XCTMain([
|
||||
testCase(CSVTests.allTests),
|
||||
])
|
Loading…
Reference in New Issue