photoprism/pkg/txt/names_parser_test.go

16 lines
279 B
Go
Raw Normal View History

package txt
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestParseName(t *testing.T) {
t.Run("BillGates", func(t *testing.T) {
result := ParseName("William Henry Gates III")
t.Logf("Name: %#v", result)
assert.Equal(t, "William", result.Given)
})
}