From a88459d5f1e83006ba421f334a1513d1c231eb6b Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 16 Apr 2019 10:57:21 +0800 Subject: add unit tests to functions --- picture_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'picture_test.go') diff --git a/picture_test.go b/picture_test.go index 5b1a9e3..890092e 100644 --- a/picture_test.go +++ b/picture_test.go @@ -97,12 +97,12 @@ func TestGetPicture(t *testing.T) { } // Try to get picture from a worksheet with illegal cell coordinates. - file, raw, err = xlsx.GetPicture("Sheet1", "A") + _, _, err = xlsx.GetPicture("Sheet1", "A") assert.EqualError(t, err, `cannot convert cell "A" to coordinates: invalid cell name "A"`) // Try to get picture from a worksheet that doesn't contain any images. file, raw, err = xlsx.GetPicture("Sheet3", "I9") - assert.EqualError(t, err, "Sheet Sheet3 is not exist") + assert.EqualError(t, err, "sheet Sheet3 is not exist") assert.Empty(t, file) assert.Empty(t, raw) -- cgit v1.2.1