From be12cc27f1d774154b17763c071e1dc6f91eab8c Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 10 May 2021 00:09:24 +0800 Subject: This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message --- adjust_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'adjust_test.go') 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()) } -- cgit v1.2.1