commit
message
Fixing one SUM_ test, adding another that should work.
author
Ben Vogt <[email protected]>
date
2017-01-08 21:34:38
stats
1 file(s) changed,
7 insertions(+),
4 deletions(-)
files
tests/SheetFormulaTest.ts
1diff --git a/tests/SheetFormulaTest.ts b/tests/SheetFormulaTest.ts
2index 9f75d8d..96083d8 100644
3--- a/tests/SheetFormulaTest.ts
4+++ b/tests/SheetFormulaTest.ts
5@@ -438,11 +438,14 @@ testFormula('=SUMPRODUCT([1, 5, 10])', 16);
6 testFormula('=SUMSQ([1, 5, 10], 10)', 226);
7
8 // Test SUMX2MY2
9-testFormula('=SUMX2MY2([1, 5, 10], [1, 5, 10])', 0);
10+testFormula('=SUMX2MY2([1,2,3],[4,5,6])', -63);
11
12 // Test SUMX2PY2
13+testFormula('=SUMX2PY2([1, 2, 3], [4, 5, 6])', 91);
14+
15+// Test SUMXMY2
16 // TODO: This should work.
17-// testFormulaWithDependencies('=SUMX2PY2(B1:B3, C1:C3)', 0, [["B1", "1"], ["B2", "5"], ["B3", "10"], ["C1", "1"], ["C2", "5"], ["C3", "10"]]);
18+// testFormula('=SUMXMY2([1,2,3],[4,5,6])', 27);
19
20 // Test TAN
21 testFormula('=TAN(0)', 0);