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