mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-07 10:34:54 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@10397 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
23d5cc49bc
commit
4de0bba9a5
1 changed files with 12 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue