As a result of the review.
// Setting the value to the maximum allowed - 1 should pass.
ASSERT_NO_THROW(modifier(&cfg, limit - 1));
EXPECT_EQ(limit - 1, accessor(&cfg));
+
+ // Setting the value to 0 should pass.
+ ASSERT_NO_THROW(modifier(&cfg, 0));
+ EXPECT_EQ(0, accessor(&cfg));
}
/// @brief Tests that modifier and the accessor returning uint16_t value
addParam(param, max_value);
EXPECT_NO_THROW(renderConfig())
<< "test for in range value of '" << param << "' failed";
+
+ // Value of 0 should be accepted.
+ addParam(param, 0);
+ EXPECT_NO_THROW(renderConfig())
+ << "test for zero value of '" << param << "' failed";
}