diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:08:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-24 19:27:03 +0200 |
commit | 840f45193b798d75c7b72204178504b331c11f83 (patch) | |
tree | abd95f2736f79fe840e3cc0fbd8bbd7ba023835a /sc/source/ui | |
parent | 78ab2b4fb997add2ffdf4a5310008d51aef51da0 (diff) |
Add AVERAGE test
Change-Id: I144858631f229685284622eb9975a168e61ff6c5
Diffstat (limited to 'sc/source/ui')
-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) { |