Browse Source

Testing files updated

tags/v2.0.2
xuri 3 months ago
parent
commit
0acb3ef968
No known key found for this signature in database GPG Key ID: BA5E5BB1C948EDF7
11 changed files with 14 additions and 14 deletions
  1. +5
    -5
      README_zh.md
  2. +2
    -3
      cell_test.go
  3. +1
    -1
      chart.go
  4. +2
    -2
      picture.go
  5. +2
    -1
      sheet_test.go
  6. +1
    -1
      sheetpr_test.go
  7. +1
    -1
      sheetview_test.go
  8. BIN
      test/BadWorkbook.xlsx
  9. BIN
      test/CalcChain.xlsx
  10. BIN
      test/MergeCell.xlsx
  11. BIN
      test/OverflowNumericCell.xlsx

+ 5
- 5
README_zh.md 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() {


+ 2
- 3
cell_test.go 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")
}

+ 1
- 1
chart.go 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() {


+ 2
- 2
picture.go 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() {


+ 2
- 1
sheet_test.go 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"
)


+ 1
- 1
sheetpr_test.go 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{


+ 1
- 1
sheetview_test.go 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{


BIN
test/BadWorkbook.xlsx View File


BIN
test/CalcChain.xlsx View File


BIN
test/MergeCell.xlsx View File


BIN
test/OverflowNumericCell.xlsx View File


Loading…
Cancel
Save