mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
18 lines
278 B
Go
18 lines
278 B
Go
package ast
|
|
|
|
import "testing"
|
|
|
|
func TestRemoveChildren(t *testing.T) {
|
|
root := NewDocument()
|
|
|
|
node1 := NewDocument()
|
|
|
|
node2 := NewDocument()
|
|
|
|
root.AppendChild(root, node1)
|
|
root.AppendChild(root, node2)
|
|
|
|
root.RemoveChildren(root)
|
|
|
|
t.Logf("%+v", node2.PreviousSibling())
|
|
}
|