summaryrefslogtreecommitdiff
path: root/adjust_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'adjust_test.go')
-rw-r--r--adjust_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/adjust_test.go b/adjust_test.go
index bdbaebe..0d63ed6 100644
--- a/adjust_test.go
+++ b/adjust_test.go
@@ -113,7 +113,7 @@ func TestAdjustCalcChain(t *testing.T) {
func TestCoordinatesToAreaRef(t *testing.T) {
f := NewFile()
_, err := f.coordinatesToAreaRef([]int{})
- assert.EqualError(t, err, "coordinates length must be 4")
+ assert.EqualError(t, err, ErrCoordinates.Error())
_, err = f.coordinatesToAreaRef([]int{1, -1, 1, 1})
assert.EqualError(t, err, "invalid cell coordinates [1, -1]")
_, err = f.coordinatesToAreaRef([]int{1, 1, 1, -1})
@@ -124,5 +124,5 @@ func TestCoordinatesToAreaRef(t *testing.T) {
}
func TestSortCoordinates(t *testing.T) {
- assert.EqualError(t, sortCoordinates(make([]int, 3)), "coordinates length must be 4")
+ assert.EqualError(t, sortCoordinates(make([]int, 3)), ErrCoordinates.Error())
}