nswrap/ast/html_start_tag_comment_test.go

23 lines
422 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestHTMLStartTagComment(t *testing.T) {
2019-06-04 00:14:04 -04:00
nodes := map[string]testNode{
`0x4259670 <col:27, col:30> Name="i"`: testNode{&HTMLStartTagComment{
2019-04-09 11:52:21 -04:00
Addr: 0x4259670,
Pos: NewPositionFromString("col:27, col:30"),
Name: "i",
ChildNodes: []Node{},
},
0x4259670,
NewPositionFromString("col:27, col:30"),
[]Node{},
2019-06-04 00:14:04 -04:00
},
2019-04-09 11:52:21 -04:00
}
runNodeTests(t, nodes)
}