diff options
author | xuri <xuri.me@gmail.com> | 2019-12-29 16:02:31 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-12-29 16:02:31 +0800 |
commit | 09485b3f9f0aefc58d51462aed65c2416205c591 (patch) | |
tree | f5fbe1830e03875d4c5422110f42ad665b91b14f /adjust.go | |
parent | 5c87effc7e6c97fff36a56dea1afac8a2f06fb37 (diff) |
Improve code coverage unit tests
Diffstat (limited to 'adjust.go')
-rw-r--r-- | adjust.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") |