|
|
@ -5921,6 +5921,15 @@ func TestFile_CalcFormulaValue(t *testing.T) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
wantResult: "5",
|
|
|
|
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 {
|
|
|
|
for _, tt := range tests {
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|