From: Stephen Seo Date: Tue, 7 Sep 2021 11:21:20 +0000 (+0900) Subject: Add tests for ThreadPool::getThreadCount() X-Git-Tag: 1.0~27 X-Git-Url: https://git.seodisparate.com/stephenseo/static/search/searchdata.js?a=commitdiff_plain;h=4fd463a87047146daac82e80f9305494107f15ca;p=EntityComponentMetaSystem Add tests for ThreadPool::getThreadCount() --- diff --git a/src/test/ThreadPoolTest.cpp b/src/test/ThreadPoolTest.cpp index 31c8529..d5ca0d3 100644 --- a/src/test/ThreadPoolTest.cpp +++ b/src/test/ThreadPoolTest.cpp @@ -66,3 +66,14 @@ TEST(ECThreadPool, Simple) { ASSERT_EQ(data.load(), 11); } + +TEST(ECThreadPool, QueryCount) { + { + OneThreadPool oneP; + ASSERT_EQ(1, oneP.getThreadCount()); + } + { + ThreeThreadPool threeP; + ASSERT_EQ(3, threeP.getThreadCount()); + } +}