mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@8533 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
69b0c851ea
commit
2297bcd78d
1 changed files with 8 additions and 0 deletions
|
|
@ -14,4 +14,12 @@ CONSOLE_APP_MAIN
|
|||
Check(FindMax(x, 2, 3), 2);
|
||||
Check(FindMax(x, 2, 4), 5);
|
||||
Check(FindMin(x, 2, 4), 4);
|
||||
|
||||
Sort(x);
|
||||
Check(FindBinaryIter(x.Begin(), x.End(), 1) - x.Begin(), 0);
|
||||
Check(FindBinaryIter(x.Begin(), x.End(), 2) - x.Begin(), 1);
|
||||
Check(FindBinaryIter(x.Begin(), x.End(), 7), NULL);
|
||||
Check(FindBinaryIter(x.Begin(), x.End(), 0), NULL);
|
||||
Check(FindBinaryIter(x.Begin(), x.End(), 11), NULL);
|
||||
Check(FindBinaryIter(x.Begin(), x.End(), 10) - x.Begin(), 5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue