nswrap/ast/switch_stmt_test.go

18 lines
306 B
Go

package ast
import (
"testing"
)
func TestSwitchStmt(t *testing.T) {
nodes := map[string]Node{
`0x7fbca3894638 <line:9:5, line:20:5>`: &SwitchStmt{
Addr: 0x7fbca3894638,
Pos: NewPositionFromString("line:9:5, line:20:5"),
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}