diff options
author | xuri <xuri.me@gmail.com> | 2021-05-10 00:09:24 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-05-10 00:09:24 +0800 |
commit | be12cc27f1d774154b17763c071e1dc6f91eab8c (patch) | |
tree | d6544c2e33e8aacfb0867e79ffc69fde435d3183 /adjust_test.go | |
parent | 423bc26d1f87db55bab5704afebf4509269bbc7e (diff) |
This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message
Diffstat (limited to 'adjust_test.go')
-rw-r--r-- | adjust_test.go | 4 |
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()) } |