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