23 lines
422 B
Go
23 lines
422 B
Go
package ast
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestHTMLStartTagComment(t *testing.T) {
|
|
nodes := map[string]testNode{
|
|
`0x4259670 <col:27, col:30> Name="i"`: testNode{&HTMLStartTagComment{
|
|
Addr: 0x4259670,
|
|
Pos: NewPositionFromString("col:27, col:30"),
|
|
Name: "i",
|
|
ChildNodes: []Node{},
|
|
},
|
|
0x4259670,
|
|
NewPositionFromString("col:27, col:30"),
|
|
[]Node{},
|
|
},
|
|
}
|
|
|
|
runNodeTests(t, nodes)
|
|
}
|