23 lines
459 B
Go
23 lines
459 B
Go
package ast
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestInlineCommandComment(t *testing.T) {
|
|
nodes := map[string]testNode{
|
|
`0x22e3510 <col:2, col:6> Name="NOTE" RenderNormal`: testNode{&InlineCommandComment{
|
|
Addr: 0x22e3510,
|
|
Pos: NewPositionFromString("col:2, col:6"),
|
|
Other: "Name=\"NOTE\" RenderNormal",
|
|
ChildNodes: []Node{},
|
|
},
|
|
0x22e3510,
|
|
NewPositionFromString("col:2, col:6"),
|
|
[]Node{},
|
|
},
|
|
}
|
|
|
|
runNodeTests(t, nodes)
|
|
}
|