diff options
author | xuri <xuri.me@gmail.com> | 2022-11-13 00:40:04 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-11-13 00:40:04 +0800 |
commit | ac564afa56a691e378ab9bb04cb14bb283886a16 (patch) | |
tree | def0303fd88e78897a3c739c31c89cff8f492d43 /comment_test.go | |
parent | bd5dd17673f767b9f4643423c77eec486f2ad53f (diff) |
Remove internal error log print, throw XML deserialize error
Diffstat (limited to 'comment_test.go')
-rw-r--r-- | comment_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |