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