f8a45b14d9
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
16 lines
280 B
Go
16 lines
280 B
Go
package txt
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTitlesAndRanks(t *testing.T) {
|
|
t.Run("king", func(t *testing.T) {
|
|
assert.True(t, TitlesAndRanks["king"])
|
|
})
|
|
t.Run("fool", func(t *testing.T) {
|
|
assert.False(t, TitlesAndRanks["fool"])
|
|
})
|
|
}
|