nswrap/ast/variadic_test.go

21 lines
227 B
Go
Raw Normal View History

2019-05-31 10:21:04 -04:00
package ast
import (
"testing"
)
func TestVariadic(t *testing.T) {
2019-06-04 00:14:04 -04:00
i := 1
2019-05-31 10:21:04 -04:00
runNodeTest(t,
Parse(`...`),
2019-06-04 00:14:04 -04:00
testNode{&Variadic{
2019-05-31 10:21:04 -04:00
ChildNodes: []Node{},
},
0,
NewPositionFromString(""),
[]Node{},
2019-06-04 00:14:04 -04:00
},
&i,
2019-05-31 10:21:04 -04:00
)
}