diff options
author | xuri <xuri.me@gmail.com> | 2020-07-11 02:31:02 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-07-11 02:31:02 +0800 |
commit | 0aa15106947965bdae9daae7571a4a3f569bf32d (patch) | |
tree | 212b49784a953a056169351be9d07e3abefb8a55 /picture_test.go | |
parent | 42b1c8148883844cf80b70a3096e6ee67be01f61 (diff) |
update docs and improve compatibility
Diffstat (limited to 'picture_test.go')
-rw-r--r-- | picture_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/picture_test.go b/picture_test.go index 015d854..f6f716e 100644 --- a/picture_test.go +++ b/picture_test.go @@ -152,6 +152,11 @@ func TestGetPicture(t *testing.T) { assert.NoError(t, err) assert.Empty(t, file) assert.Empty(t, raw) + f, err = prepareTestBook1() + assert.NoError(t, err) + f.XLSX["xl/drawings/drawing1.xml"] = MacintoshCyrillicCharset + _, _, err = f.getPicture(20, 5, "xl/drawings/drawing1.xml", "xl/drawings/_rels/drawing2.xml.rels") + assert.EqualError(t, err, "xml decode error: XML syntax error on line 1: invalid UTF-8") } func TestAddDrawingPicture(t *testing.T) { |