8 #include "gtest/gtest.h"
13 using vec = std::vector<size_t>;
15 TEST(JetGroupSingleCliqueTester, empty) {
16 std::vector<std::size_t> satisfyingJets;
17 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
19 std::size_t n_required{1};
21 EXPECT_TRUE(jgsc.
next(collector).empty());
24 TEST(JetGroupSingleCliqueTester, insufficient) {
25 std::vector<std::size_t> satisfyingJets {0, 1};
26 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
28 std::size_t n_required{3};
30 EXPECT_TRUE(jgsc.
next(collector).empty());
34 TEST(JetGroupSingleCliqueTester, sufficient) {
35 std::vector<std::size_t> satisfyingJets {0
u, 1
u};
36 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
38 std::size_t n_required{2};
42 EXPECT_EQ(jgsc.
next(collector), exp0);