From c0c27153cdd632dd824b4a698f28ae29233483c6 Mon Sep 17 00:00:00 2001 From: David Leal Date: Wed, 26 Apr 2023 19:08:19 -0600 Subject: [PATCH] fix: self-test example not working --- CONTRIBUTING.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 49337d79562..13202ce4e76 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -81,8 +81,9 @@ assert(backtracking::subset_sum::number_of_subsets(0, array1) == 3. Small C++ program that showcases and explains the use of tests. ```cpp -#include /// for std::vector -#include /// for assert +#include /// for IO operations +#include /// for std::vector +#include /// for assert /** * @brief Verifies if the given array @@ -100,7 +101,7 @@ bool is_number_on_array(const std::vector &arr, const int &number) { return true; } else { - return false; + // Number not in the current index, keep searching. } }