mirror of
https://github.com/brianstrauch/solitaire-tui.git
synced 2024-11-16 07:47:52 +01:00
15 lines
174 B
Go
15 lines
174 B
Go
|
package pkg
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestFlip(t *testing.T) {
|
||
|
card := new(Card)
|
||
|
card.Flip()
|
||
|
|
||
|
require.True(t, card.IsVisible)
|
||
|
}
|