kiteco-public/kite-go/annotate/substitute_test.go
2021-12-31 23:54:19 -08:00

17 lines
260 B
Go

package annotate
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSubstitute(t *testing.T) {
x := "abc $def$ ghi $jkl$"
y := substitute(x, map[string]string{
"def": "xxx",
"jkl": "yyy",
})
assert.Equal(t, "abc xxx ghi yyy", y)
}