diff options
author | xuri <xuri.me@gmail.com> | 2022-09-18 00:07:15 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-09-18 00:07:15 +0800 |
commit | 3f702999e6bba26afbd2a259f6849e536042ec2e (patch) | |
tree | 4bfbbb9c1f01c52bcb9ffedac6ba9190650470cf /lib_test.go | |
parent | 73cc4bd44933994ffa8efad9c3e05fe7cb826b49 (diff) |
Using the specialized name in a variable and making comments clear
- Add JSON tags for `AppProperties`, `PivotTableOption` and `PivotTableField` structure
Diffstat (limited to 'lib_test.go')
-rw-r--r-- | lib_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_test.go b/lib_test.go index 5fa644e..c42914d 100644 --- a/lib_test.go +++ b/lib_test.go @@ -222,9 +222,9 @@ func TestCoordinatesToAreaRef(t *testing.T) { _, err := f.coordinatesToAreaRef([]int{}) assert.EqualError(t, err, ErrCoordinates.Error()) _, err = f.coordinatesToAreaRef([]int{1, -1, 1, 1}) - assert.EqualError(t, err, "invalid cell coordinates [1, -1]") + assert.EqualError(t, err, "invalid cell reference [1, -1]") _, err = f.coordinatesToAreaRef([]int{1, 1, 1, -1}) - assert.EqualError(t, err, "invalid cell coordinates [1, -1]") + assert.EqualError(t, err, "invalid cell reference [1, -1]") ref, err := f.coordinatesToAreaRef([]int{1, 1, 1, 1}) assert.NoError(t, err) assert.EqualValues(t, ref, "A1:A1") |