Przeglądaj źródła

Testing files updated

xuri 6 lat temu
rodzic
commit
0acb3ef968

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

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

+ 1 - 1
chart.go

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

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

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

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

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


BIN
test/CalcChain.xlsx


BIN
test/MergeCell.xlsx


BIN
test/OverflowNumericCell.xlsx