nswrap/ast/param_command_comment_test.go

19 lines
422 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestParamCommandComment(t *testing.T) {
nodes := map[string]Node{
`0x104bca8d0 <col:4, line:59:45> [in] implicitly Param="__attr" ParamIndex=0`: &ParamCommandComment{
Addr: 0x104bca8d0,
Pos: NewPositionFromString("col:4, line:59:45"),
Other: "[in] implicitly Param=\"__attr\" ParamIndex=0",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}