summaryrefslogtreecommitdiff
path: root/picture_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-04-16 10:57:21 +0800
committerxuri <xuri.me@gmail.com>2019-04-16 10:57:21 +0800
commita88459d5f1e83006ba421f334a1513d1c231eb6b (patch)
tree49322fadda8f3024c6b5a3ea63e3326351224836 /picture_test.go
parentf2df344739146189a1dea7cfb81239231af5135b (diff)
add unit tests to functions
Diffstat (limited to 'picture_test.go')
-rw-r--r--picture_test.go4
1 files changed, 2 insertions, 2 deletions
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)