2019-12-17 18:27:08 +01:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2019-12-21 17:24:29 +01:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2019-12-17 18:27:08 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestLocation_Label(t *testing.T) {
|
2019-12-21 17:24:29 +01:00
|
|
|
l := NewLocation(1, 1)
|
2019-12-20 23:05:44 +01:00
|
|
|
l.LocCategory = "restaurant"
|
|
|
|
result := l.Category()
|
2019-12-17 18:27:08 +01:00
|
|
|
|
|
|
|
assert.Equal(t, "restaurant", result)
|
|
|
|
}
|