From 61f984116e5709ed1f76e0293e5a018a2823ba80 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 22 Nov 2016 18:38:32 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@10482 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/Algo/Algo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotest/Algo/Algo.cpp b/autotest/Algo/Algo.cpp index 4a0f5a534..acf6215e3 100644 --- a/autotest/Algo/Algo.cpp +++ b/autotest/Algo/Algo.cpp @@ -41,5 +41,10 @@ CONSOLE_APP_MAIN Check(FindLowerBound(x, 3), 2); Check(FindUpperBound(x, 3), 4); + Check(Count(x, 3), 2); + Check(Count(x, 10), 1); + Check(Count(x, 11), 0); + Check(CountIf(x, [] (auto x) { return x % 2 == 0; }), 3); + LOG("================ OK"); }