From f6baac9bc6fe617b41660a46b11c7693a47b977b Mon Sep 17 00:00:00 2001 From: Brett Vickers Date: Mon, 20 Jan 2025 19:21:27 -0800 Subject: [PATCH] Update continuation unit test --- etree_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etree_test.go b/etree_test.go index ab5527c..9562b25 100644 --- a/etree_test.go +++ b/etree_test.go @@ -1634,6 +1634,7 @@ func TestContinuations(t *testing.T) { doc := NewDocument() root := doc.CreateElementContinue("root", func(e *Element) { e.CreateElementContinue("child1", func(e *Element) { + e.CreateComment("Grandchildren of child #1") e.CreateElementContinue("grandchild1", func(e *Element) { e.CreateAttr("attr1", "1") e.CreateAttr("attr2", "2") @@ -1644,6 +1645,7 @@ func TestContinuations(t *testing.T) { }) }) e.CreateElementContinue("child2", func(e *Element) { + e.CreateComment("Grandchildren of child #2") e.CreateElementContinue("grandchild1", func(e *Element) { e.CreateAttr("attr1", "5") e.CreateAttr("attr2", "6") @@ -1666,10 +1668,12 @@ func TestContinuations(t *testing.T) { // Make sure the serialized XML matches expectation. expected := ` + +