diff --git a/support/test/src/utils/common_test.cpp b/support/test/src/utils/common_test.cpp index 5215c9c2..d1ed808a 100644 --- a/support/test/src/utils/common_test.cpp +++ b/support/test/src/utils/common_test.cpp @@ -199,6 +199,12 @@ TEST(utils_common, generate_random_between_for_signed_integers) { EXPECT_GE(res, -5); EXPECT_LE(res, 12); } + + for (std::size_t idx = 0U; idx < max_iterations; ++idx) { + auto res = utils::generate_random_between(-5, -1); + EXPECT_GE(res, -5); + EXPECT_LE(res, -1); + } } TEST(utils_common, generate_random_between_for_unsigned_integers) {