mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-21 04:18:34 +08:00
Documentation for fe671029c3
This commit is contained in:
@@ -214,6 +214,9 @@ static void tests() {
|
||||
|
||||
assert(is_number_on_array(arr, 9) == true);
|
||||
assert(is_number_on_array(arr, 4) == false);
|
||||
|
||||
std::cout << "All tests have successfully passed!<br />
|
||||
";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -290,6 +293,10 @@ static void test() {
|
||||
assert(func(...) == ...); // this ensures that the algorithm works as expected
|
||||
|
||||
// can have multiple checks
|
||||
|
||||
// this lets the user know that the tests have passed
|
||||
std::cout << "All tests have successfully passed!<br />
|
||||
";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user