Skip to content

Commit

Permalink
fix: self-test example not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 authored Apr 27, 2023
1 parent 4ca4333 commit c0c2715
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <vector> /// for std::vector
#include <cassert> /// for assert
#include <iostream> /// for IO operations
#include <vector> /// for std::vector
#include <cassert> /// for assert

/**
* @brief Verifies if the given array
Expand All @@ -100,7 +101,7 @@ bool is_number_on_array(const std::vector<T> &arr, const int &number) {
return true;
}
else {
return false;
// Number not in the current index, keep searching.
}
}

Expand Down

0 comments on commit c0c2715

Please sign in to comment.