Created package; Installed Bits package

This commit is contained in:
Caleb Kleveter 2018-01-12 16:12:57 -06:00
commit a738a5be40
7 changed files with 63 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.DS_Store
/.build
/Packages
/*.xcodeproj

16
Package.resolved Normal file
View File

@ -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
}

15
Package.swift Normal file
View File

@ -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"]),
]
)

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# CSV
A description of this package.

3
Sources/CSV/CSV.swift Normal file
View File

@ -0,0 +1,3 @@
struct CSV {
var text = "Hello, World!"
}

View File

@ -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),
]
}

6
Tests/LinuxMain.swift Normal file
View File

@ -0,0 +1,6 @@
import XCTest
@testable import CSVTests
XCTMain([
testCase(CSVTests.allTests),
])