diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:08:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:08:19 +0200 |
commit | c6f1f948178ab29ea190117376cb9365d8f4fd7b (patch) | |
tree | 8a025951dfee2391772b88165ec77260ff6dba29 /sc | |
parent | 62a06cd0a9ab053d6560f7395a4b0f339c2fbe58 (diff) |
Add AVERAGE test
Change-Id: I144858631f229685284622eb9975a168e61ff6c5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index ebaf2ed44cfd..c8007265e552 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -1361,6 +1361,12 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, ) return (nAccum + nArg); })); + pTestDocument->addTest(Reduction("Average", "AVERAGE", 500, 0, -1000, 1000, 3e-10, + [] (double nAccum, double nArg) + { + return (nAccum + nArg / static_cast<double>(500)); + })); + pTestDocument->addTest(Reduction("Product", "PRODUCT", 500, 1, 0.1, 2.5, 3e-10, [] (double nAccum, double nArg) { |