Inspire by Joey Chen's Video:【極速開發】WebStorm + JavaScript - v2
- Using Quick and Nimble to write Test code
- Follow TDD cycle
- Format by SwiftFormat
// Swift
public class Tennis {
public init(firstPlayerName: String, secondPlayerName: String)
public func score() -> String
public func firstPlayerScore()
public func secondPlayerScore()
}
- Joey Chen's Video:【極速開發】WebStorm + JavaScript - v2
https://www.youtube.com/watch?v=0910KxWDLzk
- TDD: Test-driven development
https://en.wikipedia.org/wiki/Test-driven_development
- SwiftFormat
https://github.com/nicklockwood/SwiftFormat
But I force commit in Tests/TennisTests/Tennis.swift line: 14~20, for prettier indent. Look for help 😥