photoprism/internal/entity/location_test.go

15 lines
230 B
Go
Raw Normal View History

2019-12-17 17:27:08 +00:00
package entity
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestLocation_Label(t *testing.T) {
l := NewLocation(1,1)
l.LocLabel = "restaurant"
result := l.Label()
2019-12-17 17:27:08 +00:00
assert.Equal(t, "restaurant", result)
}