photoprism/pkg/txt/names_parser_test.go
Michael Mayer f94ff54cc1 Auth: Improve account management page and config options #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-19 05:09:09 +02:00

16 lines
279 B
Go

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