Files
learngo/x-tba/tictactoe/05-testing/board_test.go
T

24 lines
449 B
Go
Raw Normal View History

2019-07-27 18:16:17 +03:00
package main
// Examples are normally used for showing how to use your package.
// But you can also use them as output testing.
func ExamplePrintBoard() {
// let the printBoard function print an output
printBoard()
// the output should exactly match the following (after Output:)
// Output:
// TIC~TAC~TOE
//
// /---+---+---\
// | | | |
// +---+---+---+
// | | | |
// +---+---+---+
// | | | |
// \---+---+---/
}