19 lines
284 B
Go
19 lines
284 B
Go
|
package chess
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func Test_PGN_StartingPosition(t *testing.T) {
|
||
|
board := newBoard()
|
||
|
board.Init()
|
||
|
|
||
|
pgn := board.pgn()
|
||
|
|
||
|
assert.Equal(t,
|
||
|
"RNBQKBNR/PPPPPPPP/--------/--------/--------/--------/pppppppp/rnbqkbnr",
|
||
|
pgn)
|
||
|
}
|