21 lines
227 B
Go
21 lines
227 B
Go
package ast
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestVariadic(t *testing.T) {
|
|
i := 1
|
|
runNodeTest(t,
|
|
Parse(`...`),
|
|
testNode{&Variadic{
|
|
ChildNodes: []Node{},
|
|
},
|
|
0,
|
|
NewPositionFromString(""),
|
|
[]Node{},
|
|
},
|
|
&i,
|
|
)
|
|
}
|