summaryrefslogtreecommitdiff
path: root/datavalidation_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-01-11 11:24:53 +0800
committerGitHub <noreply@github.com>2019-01-11 11:24:53 +0800
commit7f1323f7ac7037670848fb8ab103ace59748c28e (patch)
treea2ca4ea8afe8f48ddb11ad3dc7744b59a497ddc0 /datavalidation_test.go
parentb0ed4c12d2cced29d82e8a4af47f7b42f555ca8c (diff)
parent725c1a0c40971282ff924f4802a57e4c17431691 (diff)
Merge pull request #334 from albenik/duplicate_row
Resolve #333 New feature: File.DuplicateRowTo() duplicate row to a specified row position
Diffstat (limited to 'datavalidation_test.go')
-rw-r--r--datavalidation_test.go5
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")