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

23 lines
406 B
Go

package ast
import (
"testing"
)
func TestCaseStmt(t *testing.T) {
nodes := map[string]testNode{
`0x7fc8b5094688 <line:11:5, line:12:21>`:
testNode{&CaseStmt{
Addr: 0x7fc8b5094688,
Pos: NewPositionFromString("line:11:5, line:12:21"),
ChildNodes: []Node{},
},
0x7fc8b5094688,
NewPositionFromString("line:11:5, line:12:21"),
[]Node{},
},
}
runNodeTests(t, nodes)
}