22 lines
403 B
Go
22 lines
403 B
Go
package ast
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestDoStmt(t *testing.T) {
|
|
nodes := map[string]testNode{
|
|
`0x7ff36d0a0938 <line:11:5, line:14:23>`: testNode{&DoStmt{
|
|
Addr: 0x7ff36d0a0938,
|
|
Pos: NewPositionFromString("line:11:5, line:14:23"),
|
|
ChildNodes: []Node{},
|
|
},
|
|
0x7ff36d0a0938,
|
|
NewPositionFromString("line:11:5, line:14:23"),
|
|
[]Node{},
|
|
},
|
|
}
|
|
|
|
runNodeTests(t, nodes)
|
|
}
|