1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-08 17:20:26 +08:00

Parse runs

This commit is contained in:
Gonzalo Fernandez-Victorio
2021-05-11 15:25:46 +01:00
parent bb0851ceff
commit af18d96b6b
2 changed files with 40 additions and 1 deletions

View File

@@ -31,6 +31,9 @@ func TestStructure(t *testing.T) {
if child.Link == nil && child.Properties == nil && child.Run == nil {
t.Errorf("There are children with all fields nil")
}
if child.Run != nil && child.Run.Text == nil {
t.Errorf("We have a run with no text")
}
}
}
}