fix: make tests static

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
realstealthninja
2024-09-05 05:13:01 +05:30
committed by GitHub
parent d1b45668cb
commit fad74e89dc

View File

@@ -88,7 +88,7 @@ uint64_t fibo(uint64_t n, uint64_t mod) {
/**
* Function to test above algorithm
*/
void test() {
static void test() {
assert(fibo(6, 1000000007) == 8);
std::cout << "test case:1 passed\n";
assert(fibo(5, 1000000007) == 5);