Testing files updated

This commit is contained in:
xuri 2019-09-02 21:52:55 +08:00
parent 1fc4bc52fb
commit 0acb3ef968
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
11 changed files with 14 additions and 14 deletions

View File

@ -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() {

View File

@ -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")
}

View File

@ -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() {

View File

@ -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() {

View File

@ -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"
)

View File

@ -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{

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/360EntSecGroup-Skylar/excelize/v2"
"github.com/360EntSecGroup-Skylar/excelize"
)
var _ = []excelize.SheetViewOption{

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.