f94ff54cc1
Signed-off-by: Michael Mayer <michael@photoprism.app>
15 lines
279 B
Go
15 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)
|
|
})
|
|
}
|