photoprism/pkg/txt/titles_test.go
Michael Mayer f8a45b14d9 Backend: Move reusable packages to pkg/
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-12 14:00:56 +01:00

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