summaryrefslogtreecommitdiff
path: root/adjust_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-06-20 00:00:40 +0800
committerxuri <xuri.me@gmail.com>2019-06-20 00:00:40 +0800
commit9f8623047d2fc38e12c3b214475710d25ec88c55 (patch)
treea28a18d8953200d5a9c2a723ffceb456ff41b81c /adjust_test.go
parente77c462d3f1c29b009186d42832e6d5f42ac069f (diff)
Optimize code, fix golint issues
Diffstat (limited to 'adjust_test.go')
-rw-r--r--adjust_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/adjust_test.go b/adjust_test.go
index 364a8b8..a0de844 100644
--- a/adjust_test.go
+++ b/adjust_test.go
@@ -104,13 +104,13 @@ func TestAdjustCalcChain(t *testing.T) {
func TestCoordinatesToAreaRef(t *testing.T) {
f := NewFile()
- ref, err := f.coordinatesToAreaRef([]int{})
+ _, err := f.coordinatesToAreaRef([]int{})
assert.EqualError(t, err, "coordinates length must be 4")
- ref, err = f.coordinatesToAreaRef([]int{1, -1, 1, 1})
+ _, err = f.coordinatesToAreaRef([]int{1, -1, 1, 1})
assert.EqualError(t, err, "invalid cell coordinates [1, -1]")
- ref, err = f.coordinatesToAreaRef([]int{1, 1, 1, -1})
+ _, err = f.coordinatesToAreaRef([]int{1, 1, 1, -1})
assert.EqualError(t, err, "invalid cell coordinates [1, -1]")
- ref, err = f.coordinatesToAreaRef([]int{1, 1, 1, 1})
+ ref, err := f.coordinatesToAreaRef([]int{1, 1, 1, 1})
assert.NoError(t, err)
assert.EqualValues(t, ref, "A1:A1")
}