summaryrefslogtreecommitdiff
path: root/adjust.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-12-29 16:02:31 +0800
committerxuri <xuri.me@gmail.com>2019-12-29 16:02:31 +0800
commit09485b3f9f0aefc58d51462aed65c2416205c591 (patch)
treef5fbe1830e03875d4c5422110f42ad665b91b14f /adjust.go
parent5c87effc7e6c97fff36a56dea1afac8a2f06fb37 (diff)
Improve code coverage unit tests
Diffstat (limited to 'adjust.go')
-rw-r--r--adjust.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/adjust.go b/adjust.go
index 69ded1b..bedeec0 100644
--- a/adjust.go
+++ b/adjust.go
@@ -1,4 +1,4 @@
-// Copyright 2016 - 2019 The excelize Authors. All rights reserved. Use of
+// Copyright 2016 - 2020 The excelize Authors. All rights reserved. Use of
// this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
@@ -213,6 +213,8 @@ func areaRangeToCoordinates(firstCell, lastCell string) ([]int, error) {
return coordinates, err
}
+// sortCoordinates provides a function to correct the coordinate area, such
+// correct C1:B3 to B1:C3.
func sortCoordinates(coordinates []int) error {
if len(coordinates) != 4 {
return errors.New("coordinates length must be 4")