Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Emir Sarı committed Sep 7, 2019
1 parent 661c5d3 commit f2cd82a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Tests/mccTests/mccTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import class Foundation.Bundle

final class mccTests: XCTestCase {

// func testMorseDictCount() {
// let morseData = MorseCodeList()
// XCTAssertEqual(morseData.morseCodeDictionary.count, 91, "Morse code dictionary should contain 91 items.")
// }
//
// func testProsignsDictCount() {
// let prosignData = MorseCodeList()
// XCTAssertEqual(prosignData.prosigns.count, 7, "Prosign dictionary should contain 7 items.")
// }
func testMorseDictCount() {
let morseData = MorseCodeList()
XCTAssertEqual(morseData.morseCodeDictionary.count, 91, "Morse code dictionary should contain 91 items.")
}

func testProsignsDictCount() {
let prosignData = MorseCodeList()
XCTAssertEqual(prosignData.prosigns.count, 7, "Prosign dictionary should contain 7 items.")
}

/// Returns path to the built products directory.
var productsDirectory: URL {
Expand All @@ -25,7 +25,7 @@ final class mccTests: XCTestCase {
#endif
}

// static var allTests = [
// ("testMorseDictCount", testMorseDictCount), ("testProsignsDictCount", testProsignsDictCount)
// ]
static var allTests = [
("testMorseDictCount", testMorseDictCount), ("testProsignsDictCount", testProsignsDictCount)
]
}

0 comments on commit f2cd82a

Please sign in to comment.