diff options
author | xuri <xuri.me@gmail.com> | 2022-10-25 10:24:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 10:24:45 +0800 |
commit | f44153ea4679247070d6f1e31bb0934a10bebb31 (patch) | |
tree | b47fc64c3446ebb5c98fa70e52c1ecb56c45e573 /calc_test.go | |
parent | 14c6a198ce27b44fcce5447a2b757ce403ebb8fc (diff) |
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
Diffstat (limited to 'calc_test.go')
-rw-r--r-- | calc_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |