mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-11-03 14:24:58 +08:00
Update math/check_amicable_pair.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ bool are_amicable(int x, int y) {
|
||||
* @brief Self-test implementations
|
||||
* @returns void
|
||||
*/
|
||||
void tests() {
|
||||
static void tests() {
|
||||
assert(math::are_amicable(220, 284) == true);
|
||||
assert(math::are_amicable(6368, 6232) == true);
|
||||
assert(math::are_amicable(458, 232) == false);
|
||||
|
||||
Reference in New Issue
Block a user