15 #include <gtest/gtest.h>
23 TEST(OnEffectiveSizeDropPolicy, TriggerOnDropBelow30Percent) {
25 auto weights1 = std::vector{1.0, 1.0, 1.0, 1.0, 1.0};
26 auto weights2 = std::vector{1.0, 0.0, 0.0, 0.0, 0.0};
28 ASSERT_FALSE(policy(weights1));
29 ASSERT_TRUE(policy(weights2));
32 TEST(OnEffectiveSizeDropPolicy, NoTriggerAbove30Percent) {
34 auto weights1 = std::vector{1.0, 1.0, 1.0, 1.0, 1.0};
35 auto weights2 = std::vector{1.0, 1.0, 0.0, 0.0, 0.0};
37 ASSERT_FALSE(policy(weights1));
38 ASSERT_FALSE(policy(weights1));
41 TEST(OnEffectiveSizeDropPolicy, TriggerOnDropBelowDefaultThreshold) {
43 auto weights = std::vector{1.0, 1.0, 0.0, 0.0, 0.0};