nswrap/ast/unknown_test.go

22 lines
384 B
Go
Raw Normal View History

2019-05-31 10:21:04 -04:00
package ast
import (
"testing"
)
func TestUnknown(t *testing.T) {
nodes := map[string]Node{
`0x7faa18a445d8 <line:66:45> "asdf" aoeu`:
&Unknown{
Addr: 0x7faa18a445d8,
Name: "Unknown",
Pos: NewPositionFromString("line:66:45"),
Position2: "",
Content: ` "asdf" aoeu`,
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}