databricks-cli/libs/dyn/location_test.go

14 lines
252 B
Go
Raw Normal View History

package dyn_test
2023-10-20 12:56:59 +00:00
import (
"testing"
"github.com/databricks/cli/libs/dyn"
2023-10-20 12:56:59 +00:00
"github.com/stretchr/testify/assert"
)
func TestLocation(t *testing.T) {
loc := dyn.Location{File: "file", Line: 1, Column: 2}
2023-10-20 12:56:59 +00:00
assert.Equal(t, "file:1:2", loc.String())
}