From 490f3063c2cb35a94d64f6a6859cce7b9dee276d Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 26 Sep 2021 00:07:40 +0800 Subject: This closes #1026, time parse accuracy issue and typo fixed --- cell_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cell_test.go') diff --git a/cell_test.go b/cell_test.go index 35eaa96..126e561 100644 --- a/cell_test.go +++ b/cell_test.go @@ -243,6 +243,13 @@ func TestGetCellValue(t *testing.T) { {"", "", "", "", "", "", "", "H6"}, }, rows) assert.NoError(t, err) + + f.Sheet.Delete("xl/worksheets/sheet1.xml") + f.Pkg.Store("xl/worksheets/sheet1.xml", []byte(fmt.Sprintf(sheetData, `2422.30000000000022422.300000000000212.49641101.5999999999999275.3999999999999868.90000000000000644385.2083333333365.09999999999999965.11000000000000035.09999999999999965.11099999999999985.11110000000000042422.0123456782422.012345678912.0123456789019641101.5999999999999275.3999999999999868.900000000000006`))) + f.checked = nil + rows, err = f.GetRows("Sheet1") + assert.Equal(t, [][]string{{"2422.3", "2422.3", "12.4", "964", "1101.6", "275.4", "68.9", "44385.20833333333", "5.1", "5.11", "5.1", "5.111", "5.1111", "2422.012345678", "2422.0123456789", "12.012345678901", "964", "1101.6", "275.4", "68.9"}}, rows) + assert.NoError(t, err) } func TestGetCellType(t *testing.T) { -- cgit v1.2.1