From efcf599dfe2ec25f10c4d55513a5648addfe989b Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 28 Sep 2022 00:04:17 +0800 Subject: This closes #1360, closes #1361 - Fix default number format parse issue with a long string of digits - Fix creating a sheet with an empty name cause a corrupted file - The `GetCellStyle` function no longer return master cell style of the merge cell range - Using the specialized name in variables and functions --- lib_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib_test.go') diff --git a/lib_test.go b/lib_test.go index c42914d..e96704f 100644 --- a/lib_test.go +++ b/lib_test.go @@ -217,15 +217,15 @@ func TestCoordinatesToCellName_Error(t *testing.T) { } } -func TestCoordinatesToAreaRef(t *testing.T) { +func TestCoordinatesToRangeRef(t *testing.T) { f := NewFile() - _, err := f.coordinatesToAreaRef([]int{}) + _, err := f.coordinatesToRangeRef([]int{}) assert.EqualError(t, err, ErrCoordinates.Error()) - _, err = f.coordinatesToAreaRef([]int{1, -1, 1, 1}) + _, err = f.coordinatesToRangeRef([]int{1, -1, 1, 1}) assert.EqualError(t, err, "invalid cell reference [1, -1]") - _, err = f.coordinatesToAreaRef([]int{1, 1, 1, -1}) + _, err = f.coordinatesToRangeRef([]int{1, 1, 1, -1}) assert.EqualError(t, err, "invalid cell reference [1, -1]") - ref, err := f.coordinatesToAreaRef([]int{1, 1, 1, 1}) + ref, err := f.coordinatesToRangeRef([]int{1, 1, 1, 1}) assert.NoError(t, err) assert.EqualValues(t, ref, "A1:A1") } -- cgit v1.2.1