photoprism/internal/entity/keyword_test.go
Michael Mayer 8e15c1d6fd Code clean-up (make fmt)
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-21 17:24:29 +01:00

20 lines
424 B
Go

package entity
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewKeyword(t *testing.T) {
t.Run("cat", func(t *testing.T) {
keyword := NewKeyword("cat")
assert.Equal(t, "cat", keyword.Keyword)
assert.Equal(t, false, keyword.Skip)
})
t.Run("TABle", func(t *testing.T) {
keyword := NewKeyword("TABle")
assert.Equal(t, "table", keyword.Keyword)
assert.Equal(t, false, keyword.Skip)
})
}