The println function was removed in Swift 3, in favor of just print with the optional terminator: argument, which defaults to "\n".
import XCTest // XCTest Spec Example: // TODO: replace with your own tests (TDD), these are just how-to examples to get you started class SolutionTest: XCTestCase { static var allTests = [ ("Test Example", testExample), ] func testExample() { let actual = 1 XCTAssertEqual(actual, 1) } } XCTMain([ testCase(SolutionTest.allTests) ])
- import XCTest
- // XCTest Spec Example:
- // TODO: replace with your own tests (TDD), these are just how-to examples to get you started
- class SolutionTest: XCTestCase {
- static var allTests = [
- ("Test Example", testExample),
- ]
- func testExample() {
- let actual = 1
- XCTAssertEqual(actual, 1)
- }
- }
- XCTMain([
- testCase(SolutionTest.allTests)
- ])