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.

17 lines
428 B

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'))
t(({ eq }) => eq(firstDayWeek(2, '2017'), '02-01-2017'))
Object.freeze(tests)