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.
15 lines
370 B
15 lines
370 B
5 years ago
|
export const tests = []
|
||
|
const t = (f) => tests.push(f)
|
||
|
|
||
|
t(({ eq }) => eq(firstDayWeek(1, '1000'), '01-01-1000'))
|
||
|
|
||
|
t(({ eq }) => eq(firstDayWeek(52, '1000'), '22-12-1000'))
|
||
|
|
||
|
t(({ eq }) => eq(firstDayWeek(2, '0001'), '08-01-0001'))
|
||
|
|
||
|
t(({ eq }) => eq(firstDayWeek(43, '1983'), '17-10-1983'))
|
||
|
|
||
|
t(({ eq }) => eq(firstDayWeek(23, '0091'), '04-06-0091'))
|
||
|
|
||
|
Object.freeze(tests)
|