fix(learn): Update findXmasSunday function arguments from (2008,2121) to (1970, 2017) to match expected return. (#39996)
Co-authored-by: keiveland <keivelanddev@gmail.com>
This commit is contained in:
parent
a834672437
commit
13e7251ed9
@ -24,7 +24,7 @@ tests:
|
||||
testString: assert(typeof findXmasSunday === 'function');
|
||||
- text: <code>findXmasSunday(2000, 2100)</code> should return an array.
|
||||
testString: assert(typeof findXmasSunday(2000, 2100) === 'object');
|
||||
- text: <code>findXmasSunday(2008, 2121)</code> should return <code>[1977, 1983, 1988, 1994, 2005, 2011, 2016]</code>
|
||||
- text: <code>findXmasSunday(1970, 2017)</code> should return <code>[1977, 1983, 1988, 1994, 2005, 2011, 2016]</code>
|
||||
testString: assert.deepEqual(findXmasSunday(1970, 2017), firstSolution);
|
||||
- text: <code>findXmasSunday(2008, 2121)</code> should return <code>[2011, 2016, 2022, 2033, 2039, 2044, 2050, 2061, 2067, 2072, 2078, 2089, 2095, 2101, 2107, 2112, 2118]</code>
|
||||
testString: assert.deepEqual(findXmasSunday(2008, 2121), secondSolution);
|
||||
|
Loading…
x
Reference in New Issue
Block a user