Skip to content

Instantly share code, notes, and snippets.

@jeantimex
Last active February 24, 2019 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeantimex/15c97291fb1a5c1907db6445f504ee1c to your computer and use it in GitHub Desktop.
Save jeantimex/15c97291fb1a5c1907db6445f504ee1c to your computer and use it in GitHub Desktop.
SwiftyLibTests.swift
//
// 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