File: concat_test.go

package info (click to toggle)
golang-github-hashicorp-hil 0.0~git20160326.0.40da60f-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 328 kB
  • ctags: 307
  • sloc: yacc: 161; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package ast

import (
	"testing"
)

func TestConcatType(t *testing.T) {
	c := &Concat{}
	actual, err := c.Type(nil)
	if err != nil {
		t.Fatalf("err: %s", err)
	}
	if actual != TypeString {
		t.Fatalf("bad: %s", actual)
	}
}