.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@10397 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-11-06 07:45:29 +00:00
parent 23d5cc49bc
commit 4de0bba9a5

View file

@ -18,6 +18,18 @@ CONSOLE_APP_MAIN {
sum += sum1;
});
ASSERT(sum = Sum(x));
sum = 0;
CoLoopI(0, x.GetCount(), [&sum, &x](int from, int to) {
int sum1 = 0;
while(from < to)
sum1 += x[from++];
CoWork::FinLock();
sum += sum1;
});
ASSERT(sum = Sum(x));
LOG("=================== OK");