Skip to content

ytyubox/Tennis-kata-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tennis kata in Swift

Inspire by Joey Chen's Video:【極速開發】WebStorm + JavaScript - v2

Key concept

  1. Using Quick and Nimble to write Test code
  2. Follow TDD cycle
  3. Format by SwiftFormat

Program API

// Swift
public class Tennis {

    public init(firstPlayerName: String, secondPlayerName: String)

    public func score() -> String

    public func firstPlayerScore()

    public func secondPlayerScore()
}

Reference

  1. Joey Chen's Video:【極速開發】WebStorm + JavaScript - v2

https://www.youtube.com/watch?v=0910KxWDLzk

  1. TDD: Test-driven development

https://en.wikipedia.org/wiki/Test-driven_development

  1. SwiftFormat

https://github.com/nicklockwood/SwiftFormat

But I force commit in Tests/TennisTests/Tennis.swift line: 14~20, for prettier indent. Look for help 😥

About

Tennis Kata in Swift, With Quick and Nimble

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages