mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
17 lines
252 B
Go
17 lines
252 B
Go
package ast
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestLiteralNodeType(t *testing.T) {
|
|
c := &LiteralNode{Typex: TypeString}
|
|
actual, err := c.Type(nil)
|
|
if err != nil {
|
|
t.Fatalf("err: %s", err)
|
|
}
|
|
if actual != TypeString {
|
|
t.Fatalf("bad: %s", actual)
|
|
}
|
|
}
|