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

24 lines
458 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)
}