Kaydet (Commit) 78ab2b4f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add MIN and MAX tests

Change-Id: Ia8d5fdeb1e03009035136edeab991442b7d91c4b
üst 7fca30bf
......@@ -1367,6 +1367,18 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, )
return (nAccum * nArg);
}));
pTestDocument->addTest(Reduction("Min", "MIN", 500, DBL_MAX, -1000, 1000, 0,
[] (double nAccum, double nArg)
{
return std::min(nAccum, nArg);
}));
pTestDocument->addTest(Reduction("Max", "MAX", 500, -DBL_MAX, -1000, 1000, 0,
[] (double nAccum, double nArg)
{
return std::max(nAccum, nArg);
}));
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment