8e15c1d6fd
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
15 lines
238 B
Go
15 lines
238 B
Go
package entity
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestLocation_Label(t *testing.T) {
|
|
l := NewLocation(1, 1)
|
|
l.LocCategory = "restaurant"
|
|
result := l.Category()
|
|
|
|
assert.Equal(t, "restaurant", result)
|
|
}
|