mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
300 B
10 lines
300 B
5 years ago
|
export const tests = []
|
||
|
const t = (f) => tests.push(f)
|
||
|
|
||
|
t(() => countLeapYears(new Date('0001-12-01')) === 0)
|
||
|
t(() => countLeapYears(new Date('1664-08-09')) === 403)
|
||
|
t(() => countLeapYears(new Date('2020-01-01')) === 489)
|
||
|
t(() => countLeapYears(new Date('2048-12-08')) === 496)
|
||
|
|
||
|
Object.freeze(tests)
|