diff options
author | Veniamin Albaev <albenik@gmail.com> | 2018-12-27 17:28:28 +0300 |
---|---|---|
committer | Veniamin Albaev <albenik@gmail.com> | 2019-01-10 14:29:19 +0300 |
commit | 725c1a0c40971282ff924f4802a57e4c17431691 (patch) | |
tree | a2ca4ea8afe8f48ddb11ad3dc7744b59a497ddc0 /datavalidation_test.go | |
parent | b0ed4c12d2cced29d82e8a4af47f7b42f555ca8c (diff) |
New feature: File.DuplicateRowTo() duplicate row to specified row position.
DuplicateRowTo() is similar to DuplicateRow() but copies specified row not just after specified source row
but to any other specified position below or above source row.
Also I made minor modifications of tests: using filepath.Join() instead of direct unix-way paths strings
to avoid possible tests fails on other OS.
Diffstat (limited to 'datavalidation_test.go')
-rw-r--r-- | datavalidation_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/datavalidation_test.go b/datavalidation_test.go index 82bc42f..fad50c2 100644 --- a/datavalidation_test.go +++ b/datavalidation_test.go @@ -10,13 +10,14 @@ package excelize import ( + "path/filepath" "testing" "github.com/stretchr/testify/assert" ) func TestDataValidation(t *testing.T) { - const resultFile = "./test/TestDataValidation.xlsx" + resultFile := filepath.Join("test", "TestDataValidation.xlsx") xlsx := NewFile() @@ -50,7 +51,7 @@ func TestDataValidation(t *testing.T) { } func TestDataValidationError(t *testing.T) { - const resultFile = "./test/TestDataValidationError.xlsx" + resultFile := filepath.Join("test", "TestDataValidationError.xlsx") xlsx := NewFile() xlsx.SetCellStr("Sheet1", "E1", "E1") |