a guest Feb 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func testSum2NumbersResult() {
  2.     // This is an example of a functional test case.
  3.     // Use XCTAssert and related functions to verify your tests produce the correct results.
  4.     let sum = viewController.sum2Numbers(num1: 1, num2: 2)
  5.     XCTAssertEqual(sum, 3, "Sum of 1 and 2 is not equal 3")
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand