Commit a1eb8df4 authored by Drew's avatar Drew

Upstream XCTest added a throws in its signature in snapshot

swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a
parent 5f577229
......@@ -32,7 +32,7 @@ final class ATllbuild : Tool {
s += "import XCTest\n"
s += "\n"
s += "protocol XCTestCaseProvider {\n"
s += " var allTests : [(String, () -> Void)] { get }\n"
s += " var allTests : [(String, () throws -> Void)] { get }\n"
s += "}\n"
s += "\n"
s += "public func XCTMain(testCases: [XCTestCase]) {\n"
......@@ -43,7 +43,7 @@ final class ATllbuild : Tool {
s += " private func implementAllTests() {\n"
s += " print(\"Make sure to implement allTests via\")\n"
s += " print(\"extension \\(self.dynamicType) : XCTestCaseProvider {\")\n"
s += " print(\" var allTests : [(String, () -> Void)] {\")\n"
s += " print(\" var allTests : [(String, () throws -> Void)] {\")\n"
s += " print(\" return [\")\n"
s += " print(\" (\\\"testFoo\\\", testFoo)\")\n"
s += " print(\" ]\")\n"
......
......@@ -21,7 +21,7 @@ class FooTests: XCTestCase {
}
extension FooTests: XCTestCaseProvider {
var allTests : [(String, () -> Void)] {
var allTests : [(String, () throws -> Void)] {
return [
("testFoo", testFoo)
]
......
......@@ -21,7 +21,7 @@ class FooTests: XCTestCase {
}
extension FooTests: XCTestCaseProvider {
var allTests : [(String, () -> Void)] {
var allTests : [(String, () throws -> Void)] {
return [
//("testFoo", testFoo) oops! Forgot this one!
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment