summaryrefslogtreecommitdiff
path: root/adjust_test.go
diff options
context:
space:
mode:
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")
}