github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/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  }