photoprism/pkg/txt/titles_test.go

17 lines
280 B
Go
Raw Normal View History

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"])
})
}