mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
422 B
16 lines
422 B
9 years ago
|
package pkg
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
"text/template"
|
||
|
)
|
||
|
|
||
|
// TestGoFeatures is a canary test to make sure that features that are invisible at API level are supported.
|
||
|
func TestGoFeatures(t *testing.T) {
|
||
|
// Test that template with Go 1.6 syntax can compile.
|
||
|
_, err := template.New("test").Parse(`{{- printf "hello"}}`)
|
||
|
if err != nil {
|
||
|
t.Fatalf("You must use a version of Go that supports {{- template syntax. (1.6+)")
|
||
|
}
|
||
|
}
|