Discover Packages
github.com/Golangltd/leafltd
src
xcode
xGitHub
github.com
smartystreets
goconvey
examples
package
Version:
v0.0.0-...-2824937
Opens a new window with list of versions in this module.
Published: Nov 2, 2020
License: MIT, MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types type Game NewGame() (self) Roll(pins) (self) Score()
Documentation
¶
Package examples contains, well, examples of how to use goconvey to
specify behavior of a system under test. It contains a well-known example
by Robert C. Martin called "Bowling Game Kata" as well as another very
trivial example that demonstrates Reset() and some of the assertions.
Game contains the state of a bowling game.
NewGame allocates and starts a new game of bowling.
Roll rolls the ball and knocks down the number of pins specified by pins.
func (self *Game ) Score() (sum int )
Score calculates and returns the player's current score.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.