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": "hoy", "now": "2026-08-28T10:30", "expected": "2026-08-28T09:00"},
3 {"id": "tomorrow", "input": "mañana", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
4 {"id": "yesterday", "input": "ayer", "now": "2026-08-28T10:30", "expected": "2026-08-27T09:00"},
5 {"id": "case-and-space-insensitive", "input": " Mañana ", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
6 {"id": "accent-may-be-left-off", "input": "manana", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
7
8 {"id": "in-3-days", "input": "en 3 días", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"},
9 {"id": "in-2-weeks", "input": "en 2 semanas", "now": "2026-08-28T10:30", "expected": "2026-09-11T09:00"},
10 {"id": "days-ago", "input": "hace 2 días", "now": "2026-08-28T10:30", "expected": "2026-08-26T09:00"},
11 {"id": "in-2-hours", "input": "en 2 horas", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:30"},
12 {"id": "in-30-minutes", "input": "en 30 minutos", "now": "2026-08-28T10:30", "expected": "2026-08-28T11:00"},
13
14 {"id": "next-week", "input": "próxima semana", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
15 {"id": "last-week", "input": "semana pasada", "now": "2026-08-28T10:30", "expected": "2026-08-21T09:00"},
16 {"id": "next-month", "input": "próximo mes", "now": "2026-08-28T10:30", "expected": "2026-09-28T09:00"},
17
18 {"id": "bare-weekday-never-today", "input": "vie", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
19 {"id": "next-monday", "input": "próximo lunes", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"},
20 {"id": "last-monday", "input": "lunes pasado", "now": "2026-08-28T10:30", "expected": "2026-08-24T09:00"},
21 {"id": "weekday-full-name", "input": "sábado", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
22
23 {"id": "day-month-clock", "input": "25 dic 18:00", "now": "2026-08-28T10:30", "expected": "2026-12-25T18:00"},
24 {"id": "day-month-year", "input": "25 diciembre 2027", "now": "2026-08-28T10:30", "expected": "2027-12-25T09:00"},
25 {"id": "month-day", "input": "dic 25", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
26 {"id": "the-de-linker-is-how-a-person-writes-it", "input": "25 de marzo", "now": "2026-08-28T10:30", "expected": "2027-03-25T09:00"},
27 {"id": "homograph-with-a-day-is-the-month", "input": "25 mar", "now": "2026-08-28T10:30", "expected": "2027-03-25T09:00"},
28 {"id": "homograph-alone-is-the-weekday", "input": "mar", "now": "2026-08-28T10:30", "expected": "2026-09-01T09:00"},
29
30 {"id": "noon", "input": "mediodía", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:00"},
31 {"id": "midnight", "input": "medianoche", "now": "2026-08-28T10:30", "expected": "2026-08-28T00:00"},
32 {"id": "midnight-tomorrow", "input": "medianoche mañana", "now": "2026-08-28T10:30", "expected": "2026-08-29T00:00"},
33 {"id": "tomorrow-at-a-clock", "input": "mañana a las 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": "am", "input": "9 am", "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": "vie, 25 dic 2026", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
42 {"id": "own-display-with-a-homograph-twice", "input": "mar, 3 mar 2026", "now": "2026-08-28T10:30", "expected": "2026-03-03T09:00"},
43
44 {"id": "range-end-time-only-lands-on-the-start-day", "input": "17:00", "now": "2026-08-28T10:30", "prev": "2026-08-20T09:00", "base": "2026-12-25T10:00", "expected": "2026-12-25T17:00"},
45
46 {"id": "no-phrase-inside-a-word", "input": "atlas", "now": "2026-08-28T10:30", "expected": null},
47 {"id": "spelled-out-quantity", "input": "en dos semanas", "now": "2026-08-28T10:30", "expected": null},
48 {"id": "impossible-clock", "input": "25:00", "now": "2026-08-28T10:30", "expected": null}
49]
50