Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5a5b738487 |
@@ -1,3 +1,3 @@
|
|||||||
struct drone_tutorial_swift {
|
struct drone_tutorial_swift {
|
||||||
var text := "Hello, World!"
|
var text = "Hello, World!"
|
||||||
}
|
}
|
||||||
|
@@ -9,7 +9,13 @@ final class drone_tutorial_swiftTests: XCTestCase {
|
|||||||
XCTAssertEqual(drone_tutorial_swift().text, "Hello, World!")
|
XCTAssertEqual(drone_tutorial_swift().text, "Hello, World!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func testFailure() {
|
||||||
|
// This is an example of a dysfunctional test case.
|
||||||
|
XCTAssertEqual(drone_tutorial_swift().text, "Goodbye, Cruel World!")
|
||||||
|
}
|
||||||
|
|
||||||
static var allTests = [
|
static var allTests = [
|
||||||
("testExample", testExample),
|
("testExample", testExample),
|
||||||
|
("testFailure", testFailure),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user