mirror of
https://github.com/kiteco/kiteco-public.git
synced 2024-09-11 13:38:04 +03:00
17 lines
260 B
Go
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)
|
|
}
|