From f44153ea4679247070d6f1e31bb0934a10bebb31 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 25 Oct 2022 10:24:45 +0800 Subject: This closes #1377, stream writer writes inline string type for string cell value - Add `CellTypeFormula`, `CellTypeInlineString`, `CellTypeSharedString` and remove `CellTypeString` in `CellType` enumeration - Unit tests updated --- calc_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calc_test.go') diff --git a/calc_test.go b/calc_test.go index 1a8b8c6..5d61712 100644 --- a/calc_test.go +++ b/calc_test.go @@ -5223,8 +5223,8 @@ func TestCalcXLOOKUP(t *testing.T) { "=XLOOKUP(29,C2:H2,C3:H3,NA(),-1,1)": "D3", } for formula, expected := range formulaList { - assert.NoError(t, f.SetCellFormula("Sheet1", "D3", formula)) - result, err := f.CalcCellValue("Sheet1", "D3") + assert.NoError(t, f.SetCellFormula("Sheet1", "D4", formula)) + result, err := f.CalcCellValue("Sheet1", "D4") assert.NoError(t, err, formula) assert.Equal(t, expected, result, formula) } -- cgit v1.2.1