nswrap/ast/format_arg_attr_test.go

23 lines
418 B
Go
Raw Normal View History

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