nswrap/ast/inline_command_comment_test.go

23 lines
459 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestInlineCommandComment(t *testing.T) {
2019-06-04 00:14:04 -04:00
nodes := map[string]testNode{
`0x22e3510 <col:2, col:6> Name="NOTE" RenderNormal`: testNode{&InlineCommandComment{
2019-04-09 11:52:21 -04:00
Addr: 0x22e3510,
Pos: NewPositionFromString("col:2, col:6"),
Other: "Name=\"NOTE\" RenderNormal",
ChildNodes: []Node{},
},
0x22e3510,
NewPositionFromString("col:2, col:6"),
[]Node{},
2019-06-04 00:14:04 -04:00
},
2019-04-09 11:52:21 -04:00
}
runNodeTests(t, nodes)
}