Last active
February 24, 2019 19:29
-
-
Save jeantimex/15c97291fb1a5c1907db6445f504ee1c to your computer and use it in GitHub Desktop.
SwiftyLibTests.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SwiftyLibTests.swift | |
// | |
import XCTest | |
@testable import SwiftyLib | |
class SwiftyLibTests: XCTestCase { | |
var swiftyLib: SwiftyLib! | |
override func setUp() { | |
swiftyLib = SwiftyLib() | |
} | |
func testAdd() { | |
XCTAssertEqual(swiftyLib.add(a: 1, b: 1), 2) | |
} | |
func testSub() { | |
XCTAssertEqual(swiftyLib.sub(a: 2, b: 1), 1) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment