mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 02:25:57 +08:00
Update others/easter.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -75,11 +75,11 @@ EasterYearMonthDay findEaster(int y) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Self-test implementations
|
||||
* @returns void
|
||||
*/
|
||||
static void test() {
|
||||
/*
|
||||
* @brief Inputting different year values and comparing the outputs to a
|
||||
* calendar
|
||||
*/
|
||||
|
||||
// 2003 | April 20th
|
||||
assert(findEaster(2003).month == 4); // Should return true
|
||||
|
||||
Reference in New Issue
Block a user