diff options
author | xuri <xuri.me@gmail.com> | 2019-09-02 21:52:55 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-09-02 21:52:55 +0800 |
commit | 0acb3ef9685e80d51dfda5ab9a9db870af7e1614 (patch) | |
tree | d0082176b8ff5b6090642334d50ddf9db0ff8690 | |
parent | 1fc4bc52fb8a0160eb624e7a24619d8c0e47e540 (diff) |
Testing files updated
-rw-r--r-- | README_zh.md | 10 | ||||
-rw-r--r-- | cell_test.go | 5 | ||||
-rw-r--r-- | chart.go | 2 | ||||
-rw-r--r-- | picture.go | 4 | ||||
-rw-r--r-- | sheet_test.go | 3 | ||||
-rw-r--r-- | sheetpr_test.go | 2 | ||||
-rw-r--r-- | sheetview_test.go | 2 | ||||
-rw-r--r-- | test/BadWorkbook.xlsx | bin | 6019 -> 4955 bytes | |||
-rw-r--r-- | test/CalcChain.xlsx | bin | 5959 -> 5838 bytes | |||
-rw-r--r-- | test/MergeCell.xlsx | bin | 8583 -> 6343 bytes | |||
-rw-r--r-- | test/OverflowNumericCell.xlsx | bin | 11445 -> 5094 bytes |
11 files changed, 14 insertions, 14 deletions
diff --git a/README_zh.md b/README_zh.md index d57f301..6c2b190 100644 --- a/README_zh.md +++ b/README_zh.md @@ -20,7 +20,7 @@ Excelize 是 Go 语言编写的用于操作 Office Excel 文档类库,基于 E ### 安装 ```bash -go get github.com/360EntSecGroup-Skylar/excelize/v2 +go get github.com/360EntSecGroup-Skylar/excelize ``` ### 创建 Excel 文档 @@ -33,7 +33,7 @@ package main import ( "fmt" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" ) func main() { @@ -63,7 +63,7 @@ package main import ( "fmt" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" ) func main() { @@ -102,7 +102,7 @@ package main import ( "fmt" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" ) func main() { @@ -140,7 +140,7 @@ import ( _ "image/jpeg" _ "image/png" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" ) func main() { diff --git a/cell_test.go b/cell_test.go index 09627c2..653aaab 100644 --- a/cell_test.go +++ b/cell_test.go @@ -101,9 +101,8 @@ func TestOverflowNumericCell(t *testing.T) { if !assert.NoError(t, err) { t.FailNow() } - // source of xlsx file is Russia, don`t touch it, elsewhere bug not reproduced - val, err := f.GetCellValue("Лист1", "A1") + val, err := f.GetCellValue("Sheet1", "A1") assert.NoError(t, err) - // GOARCH=amd64 - all ok; GOARCH=386 - actual : "-2147483648" + // GOARCH=amd64 - all ok; GOARCH=386 - actual: "-2147483648" assert.Equal(t, "8595602512225", val, "A1 should be 8595602512225") } @@ -543,7 +543,7 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) { // import ( // "fmt" // -// "github.com/360EntSecGroup-Skylar/excelize/v2" +// "github.com/360EntSecGroup-Skylar/excelize" // ) // // func main() { @@ -51,7 +51,7 @@ func parseFormatPictureSet(formatSet string) (*formatPicture, error) { // _ "image/jpeg" // _ "image/png" // -// "github.com/360EntSecGroup-Skylar/excelize/v2" +// "github.com/360EntSecGroup-Skylar/excelize" // ) // // func main() { @@ -111,7 +111,7 @@ func (f *File) AddPicture(sheet, cell, picture, format string) error { // _ "image/jpeg" // "io/ioutil" // -// "github.com/360EntSecGroup-Skylar/excelize/v2" +// "github.com/360EntSecGroup-Skylar/excelize" // ) // // func main() { diff --git a/sheet_test.go b/sheet_test.go index 3baa084..145e302 100644 --- a/sheet_test.go +++ b/sheet_test.go @@ -6,7 +6,8 @@ import ( "strings" "testing" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" + "github.com/mohae/deepcopy" "github.com/stretchr/testify/assert" ) diff --git a/sheetpr_test.go b/sheetpr_test.go index 97a314c..b9f9e3b 100644 --- a/sheetpr_test.go +++ b/sheetpr_test.go @@ -7,7 +7,7 @@ import ( "github.com/mohae/deepcopy" "github.com/stretchr/testify/assert" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" ) var _ = []excelize.SheetPrOption{ diff --git a/sheetview_test.go b/sheetview_test.go index 2e697b8..07f59ed 100644 --- a/sheetview_test.go +++ b/sheetview_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/360EntSecGroup-Skylar/excelize/v2" + "github.com/360EntSecGroup-Skylar/excelize" ) var _ = []excelize.SheetViewOption{ diff --git a/test/BadWorkbook.xlsx b/test/BadWorkbook.xlsx Binary files differindex f917a20..a1901b0 100644 --- a/test/BadWorkbook.xlsx +++ b/test/BadWorkbook.xlsx diff --git a/test/CalcChain.xlsx b/test/CalcChain.xlsx Binary files differindex 8558f82..fa57710 100644 --- a/test/CalcChain.xlsx +++ b/test/CalcChain.xlsx diff --git a/test/MergeCell.xlsx b/test/MergeCell.xlsx Binary files differindex d4dad18..3539e4b 100644 --- a/test/MergeCell.xlsx +++ b/test/MergeCell.xlsx diff --git a/test/OverflowNumericCell.xlsx b/test/OverflowNumericCell.xlsx Binary files differindex 1844888..9da5091 100644 --- a/test/OverflowNumericCell.xlsx +++ b/test/OverflowNumericCell.xlsx |