mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 14:36:25 +08:00
fix: make tests static
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user