Add initial source code, with passing test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthias Neeracher
2019-02-03 03:25:27 +01:00
parent 7cf852379c
commit 7a9535bdfe
7 changed files with 88 additions and 2 deletions

7
Tests/LinuxMain.swift Normal file
View File

@@ -0,0 +1,7 @@
import XCTest
import drone_tutorial_swiftTests
var tests = [XCTestCaseEntry]()
tests += drone_tutorial_swiftTests.allTests()
XCTMain(tests)

View File

@@ -0,0 +1,9 @@
import XCTest
#if !os(macOS)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(drone_tutorial_swiftTests.allTests),
]
}
#endif

View File

@@ -0,0 +1,15 @@
import XCTest
@testable import drone_tutorial_swift
final class drone_tutorial_swiftTests: 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(drone_tutorial_swift().text, "Hello, World!")
}
static var allTests = [
("testExample", testExample),
]
}