nswrap/ast/format_arg_attr_test.go
2019-06-04 00:14:04 -04:00

24 lines
417 B
Go

package ast
import (
"testing"
)
func TestFormatArgAttr(t *testing.T) {
nodes := map[string]testNode{
`0x7f1234567890 <col:47, col:57> 1`:
testNode{&FormatArgAttr{
Addr: 0x7f1234567890,
Pos: NewPositionFromString("col:47, col:57"),
Arg: "1",
ChildNodes: []Node{},
},
0x7f1234567890,
NewPositionFromString("col:47, col:57"),
[]Node{},
},
}
runNodeTests(t, nodes)
}