Skip to content

Commit c7c9110

Browse files
chore: add scope specifier in test cases
1 parent e963491 commit c7c9110

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

math/factorial_memoization.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ uint64_t fact_recursion(uint64_t n) {
5454
*/
5555
void test_fact_recursion() {
5656
// Test cases for factorial computation
57-
assert(fact_recursion(0) == 1);
58-
assert(fact_recursion(1) == 1);
59-
assert(fact_recursion(5) == 120);
60-
assert(fact_recursion(10) == 3628800);
57+
assert(math::fact_recursion(0) == 1);
58+
assert(math::fact_recursion(1) == 1);
59+
assert(math::fact_recursion(5) == 120);
60+
assert(math::fact_recursion(10) == 3628800);
6161
std::cout << "All test cases passed!\n";
6262
}
6363

0 commit comments

Comments
 (0)