From d83096cdb79773263224c9d8b033b4ad6283c1c9 Mon Sep 17 00:00:00 2001 From: Imhven Date: Sun, 19 Feb 2023 16:53:59 +0800 Subject: [PATCH] test: add Power CalcFormulaValue test case --- calc_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/calc_test.go b/calc_test.go index 13e2b8c..73357cb 100644 --- a/calc_test.go +++ b/calc_test.go @@ -5921,6 +5921,15 @@ func TestFile_CalcFormulaValue(t *testing.T) { }, wantResult: "5", }, + { + name: "test Power CalcFormulaValue", + f: prepareCalcData(cellData), + args: args{ + sheet: "Sheet1", + formula: "A1^2+LN(B1)", + }, + wantResult: "2.386294361119891", + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {