github.com/franklinhu/terraform@v0.6.9-0.20151202232446-81f7fb1e6f9e/config/lang/ast/concat_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestConcatType(t *testing.T) { 8 c := &Concat{} 9 actual, err := c.Type(nil) 10 if err != nil { 11 t.Fatalf("err: %s", err) 12 } 13 if actual != TypeString { 14 t.Fatalf("bad: %s", actual) 15 } 16 }