Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Project
- ...
- func pow(_ target: Int) -> Int {
- return target*target
- }
- // Test Target
- ...
- func testPowerFunction(){
- let expectedValue = 9
- let testingResult = myInstance.pow(3)
- XCTAssertEqual(expectedValue, testingResult, "결과 값이 올바르지 않습니다.")
- }
Add Comment
Please, Sign In to add comment