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.
9 lines
300 B
9 lines
300 B
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)
|
|
|