diff options
author | xuri <xuri.me@gmail.com> | 2019-03-20 16:52:33 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-03-20 16:52:33 +0800 |
commit | 40ea8eb014c200c5ed8d81918ee56b0579aca324 (patch) | |
tree | a77370e074cc3b53f642b80bc3494ac35a25d17c /excelize_test.go | |
parent | beff7b4f3c1c9a964d5f09181e1368d3a2b9a096 (diff) |
resolve #360, fix axis parse issue when add / get pictures;
typo fixed and go test updated
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/excelize_test.go b/excelize_test.go index 694f505..9671130 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -819,8 +819,8 @@ func TestGetPicture(t *testing.T) { } file, raw := xlsx.GetPicture("Sheet1", "F21") - if !assert.NotEmpty(t, file) || !assert.NotEmpty(t, raw) || - !assert.NoError(t, ioutil.WriteFile(file, raw, 0644)) { + if !assert.NotEmpty(t, filepath.Join("test", file)) || !assert.NotEmpty(t, raw) || + !assert.NoError(t, ioutil.WriteFile(filepath.Join("test", file), raw, 0644)) { t.FailNow() } @@ -851,8 +851,8 @@ func TestGetPicture(t *testing.T) { } file, raw = xlsx.GetPicture("Sheet1", "F21") - if !assert.NotEmpty(t, file) || !assert.NotEmpty(t, raw) || - !assert.NoError(t, ioutil.WriteFile(file, raw, 0644)) { + if !assert.NotEmpty(t, filepath.Join("test", file)) || !assert.NotEmpty(t, raw) || + !assert.NoError(t, ioutil.WriteFile(filepath.Join("test", file), raw, 0644)) { t.FailNow() } |