summaryrefslogtreecommitdiff
path: root/calc_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-07-10 18:14:48 +0800
committerxuri <xuri.me@gmail.com>2022-07-10 18:14:48 +0800
commita65c5846e45fece382f72465f9e858c788dfcfef (patch)
treeff6d3bfe0ec854e5f46a15ff04b44c3acb37db39 /calc_test.go
parent1dbed64f105db2a715d963933642839460b6642a (diff)
This closes #1262, support for dependence formulas calculation
- Add export option `MaxCalcIterations` for specifies the maximum iterations for iterative calculation - Update unit test for the database formula functions
Diffstat (limited to 'calc_test.go')
-rw-r--r--calc_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/calc_test.go b/calc_test.go
index b8efd61..47cd806 100644
--- a/calc_test.go
+++ b/calc_test.go
@@ -4606,8 +4606,8 @@ func TestCalcCOVAR(t *testing.T) {
func TestCalcDatabase(t *testing.T) {
cellData := [][]interface{}{
{"Tree", "Height", "Age", "Yield", "Profit", "Height"},
- {"=Apple", ">1000%", nil, nil, nil, "<16"},
- {"=Pear"},
+ {nil, ">1000%", nil, nil, nil, "<16"},
+ {},
{"Tree", "Height", "Age", "Yield", "Profit"},
{"Apple", 18, 20, 14, 105},
{"Pear", 12, 12, 10, 96},