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

23 lines
318 B
Go

package ast
import (
"testing"
)
func TestEnum(t *testing.T) {
nodes := map[string]testNode{
`0x7f980b858308 'foo'`:
testNode{&Enum{
Addr: 0x7f980b858308,
Name: "foo",
ChildNodes: []Node{},
},
0x7f980b858308,
NewPositionFromString(""),
[]Node{},
},
}
runNodeTests(t, nodes)
}