diff options
Diffstat (limited to 'tpl/transform/transform_test.go')
-rw-r--r-- | tpl/transform/transform_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/transform/transform_test.go b/tpl/transform/transform_test.go index 429b206fd..195a0f15c 100644 --- a/tpl/transform/transform_test.go +++ b/tpl/transform/transform_test.go @@ -69,6 +69,8 @@ func TestHighlight(t *testing.T) { expect interface{} }{ {"func boo() {}", "go", "", "boo"}, + // Issue #4179 + {`<Foo attr=" < "></Foo>`, "xml", "", `&lt;`}, {tstNoStringer{}, "go", "", false}, } { errMsg := fmt.Sprintf("[%d]", i) @@ -81,7 +83,7 @@ func TestHighlight(t *testing.T) { } require.NoError(t, err, errMsg) - assert.Contains(t, result, "boo", errMsg) + assert.Contains(t, result, test.expect.(string), errMsg) } } |