From ac564afa56a691e378ab9bb04cb14bb283886a16 Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 13 Nov 2022 00:40:04 +0800 Subject: Remove internal error log print, throw XML deserialize error --- comment_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comment_test.go') diff --git a/comment_test.go b/comment_test.go index ed44508..ead3939 100644 --- a/comment_test.go +++ b/comment_test.go @@ -112,7 +112,8 @@ func TestDecodeVMLDrawingReader(t *testing.T) { f := NewFile() path := "xl/drawings/vmlDrawing1.xml" f.Pkg.Store(path, MacintoshCyrillicCharset) - f.decodeVMLDrawingReader(path) + _, err := f.decodeVMLDrawingReader(path) + assert.EqualError(t, err, "XML syntax error on line 1: invalid UTF-8") } func TestCommentsReader(t *testing.T) { -- cgit v1.2.1