rastrillo / fiesta Public

Clone
git clone https://amadan.net/rastrillo/fiesta

Plain git — no account needed to clone.

Download

Download this file

1[
2 {"id": "today", "input": "hoje", "now": "2026-08-28T10:30", "expected": "2026-08-28T09:00"},
3 {"id": "tomorrow", "input": "amanhã", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
4 {"id": "yesterday", "input": "ontem", "now": "2026-08-28T10:30", "expected": "2026-08-27T09:00"},
5 {"id": "case-and-space-insensitive", "input": " Amanhã ", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
6 {"id": "accent-may-be-left-off", "input": "amanha", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
7
8 {"id": "in-3-days", "input": "em 3 dias", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"},
9 {"id": "multi-word-in-two-weeks", "input": "daqui a 2 semanas", "now": "2026-08-28T10:30", "expected": "2026-09-11T09:00"},
10 {"id": "days-ago-postposed", "input": "2 dias atrás", "now": "2026-08-28T10:30", "expected": "2026-08-26T09:00"},
11 {"id": "days-ago-preposed", "input": "há 2 dias", "now": "2026-08-28T10:30", "expected": "2026-08-26T09:00"},
12 {"id": "in-2-hours", "input": "em 2 horas", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:30"},
13 {"id": "in-30-minutes", "input": "em 30 minutos", "now": "2026-08-28T10:30", "expected": "2026-08-28T11:00"},
14
15 {"id": "next-week", "input": "próxima semana", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
16 {"id": "last-week", "input": "semana passada", "now": "2026-08-28T10:30", "expected": "2026-08-21T09:00"},
17 {"id": "next-month", "input": "próximo mês", "now": "2026-08-28T10:30", "expected": "2026-09-28T09:00"},
18
19 {"id": "bare-weekday-never-today", "input": "sex", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
20 {"id": "next-monday", "input": "próxima seg", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"},
21 {"id": "weekday-full-name", "input": "próxima segunda-feira", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"},
22 {"id": "last-monday", "input": "seg passada", "now": "2026-08-28T10:30", "expected": "2026-08-24T09:00"},
23
24 {"id": "day-month-clock", "input": "25 dez 18:00", "now": "2026-08-28T10:30", "expected": "2026-12-25T18:00"},
25 {"id": "day-month-year", "input": "25 dezembro 2027", "now": "2026-08-28T10:30", "expected": "2027-12-25T09:00"},
26 {"id": "month-day", "input": "dez 25", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
27 {"id": "the-de-linker-is-how-a-person-writes-it", "input": "25 de dezembro", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
28
29 {"id": "hyphenated-noon", "input": "meio-dia", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:00"},
30 {"id": "spaced-noon", "input": "meio dia", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:00"},
31 {"id": "hyphenated-midnight", "input": "meia-noite", "now": "2026-08-28T10:30", "expected": "2026-08-28T00:00"},
32 {"id": "midnight-tomorrow", "input": "meia-noite amanhã", "now": "2026-08-28T10:30", "expected": "2026-08-29T00:00"},
33 {"id": "tomorrow-at-a-clock", "input": "amanhã às 18:00", "now": "2026-08-28T10:30", "expected": "2026-08-29T18:00"},
34 {"id": "afternoon-is-the-pm-word", "input": "3 tarde", "now": "2026-08-28T10:30", "expected": "2026-08-28T15:00"},
35 {"id": "morning-is-the-am-word", "input": "9 manhã", "now": "2026-08-28T10:30", "expected": "2026-08-28T09:00"},
36 {"id": "clock", "input": "14:30", "now": "2026-08-28T10:30", "expected": "2026-08-28T14:30"},
37
38 {"id": "wire-date", "input": "2026-12-25", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
39 {"id": "numeric-day-first", "input": "25/12/2026", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
40 {"id": "bare-year", "input": "2030", "now": "2026-08-28T10:30", "expected": "2030-08-28T09:00"},
41 {"id": "own-display-reads-back", "input": "sexta, 25/12/2026", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
42 {"id": "own-datetime-display-reads-back", "input": "sexta, 25/12/2026, 15:30", "now": "2026-08-28T10:30", "expected": "2026-12-25T15:30"},
43
44 {"id": "no-phrase-inside-a-word", "input": "atlas", "now": "2026-08-28T10:30", "expected": null},
45 {"id": "spelled-out-quantity", "input": "em duas semanas", "now": "2026-08-28T10:30", "expected": null},
46 {"id": "impossible-clock", "input": "25:00", "now": "2026-08-28T10:30", "expected": null},
47 {"id": "weekday-without-its-feira-is-completed-into-one", "input": "próxima segunda", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"}
48]
49