Wikitrek:Pasticci/ChronoSpine
Vai alla navigazione
Vai alla ricerca
Query POC
Self test
ChronoSpine self-test: 79 / 79 passed.
| Module | Input | Expected | Result | Details |
|---|---|---|---|---|
| date | 2257 | success | PASS | |
| date | 2022-05 | success | PASS | |
| date | 2022-05-05 | success | PASS | |
| date | 2257 | success | PASS | |
| date | c. 2150 | success | PASS | |
| date | c.2150 | success | PASS | |
| date | ? | success | PASS | |
| date | 2256–2257 | success | PASS | |
| date | 2256--2257 | success | PASS | |
| date | c. 2150–2200 | success | PASS | |
| date | 2024-02-29 | success | PASS | |
| date | | error: empty | PASS | |
| date | abc | error: bad-format | PASS | |
| date | 2022-13-01 | error: bad-month | PASS | |
| date | 2022-04-31 | error: bad-day | PASS | |
| date | 2023-02-29 | error: bad-day | PASS | |
| date | 2257--2256 | error: range-order | PASS | |
| date | 2150--? | error: bad-range | PASS | |
| date | 2150--2200--2300 | error: bad-range | PASS | |
| date | 2150-2200-2300 | error: bad-format | PASS | |
| stardate | 4789.6 | success | PASS | |
| stardate | 4789,6 | success | PASS | |
| stardate | DS 4789.6 | success | PASS | |
| stardate | SD4789.6 | success | PASS | |
| stardate | 4789.6 | success | PASS | |
| stardate | | error: empty | PASS | |
| stardate | DS | error: bad-format | PASS | |
| stardate | abc | error: bad-format | PASS | |
| stardate | 4.789,6 | error: bad-format | PASS | |
| manual | basic valid entry (Italian params) | 1 entries, 0 problems | PASS | |
| manual | basic valid entry (English aliases) | 1 entries, 0 problems | PASS | |
| manual | missing date is fatal | 0 entries, 1 problems | PASS | |
| manual | missing label is fatal | 0 entries, 1 problems | PASS | |
| manual | unparseable date is fatal | 0 entries, 1 problems | PASS | |
| manual | unparseable stardate is non-fatal | 1 entries, 1 problems | PASS | |
| manual | entirely blank numbered set is skipped silently | 1 entries, 0 problems | PASS | |
| manual | gap-tolerant numbering (1 and 9, nothing between) | 2 entries, 0 problems | PASS | |
| manual | discovery is not limited to the date field | 0 entries, 1 problems | PASS | |
| manual | alias conflict: Italian wins over English | 1 entries, 0 problems | PASS | |
| manual | uncertain date passes through the adapter | 1 entries, 0 problems | PASS | |
| manual | approximate range passes through the adapter | 1 entries, 0 problems | PASS | |
| group | anno mode: basic grouping, chronological order | 2 groups | PASS | |
| group | mese mode: a year-only entry gets its own bucket, sorted before any month | 3 groups | PASS | |
| group | giorno mode: cascades one level deeper (month-only before any day) | 2 groups | PASS | |
| group | stagione mode: a non-contiguous (interleaved) season is still merged into one bucket | 2 groups | PASS | |
| group | stagione mode: entries with no gruppo share one ungrouped bucket | 2 groups | PASS | |
| group | incerta entries are always last, in their own order, regardless of raggruppa | 2 groups | PASS | |
| group | unrecognised raggruppa value falls back to anno behaviour | 2 groups | PASS | |
| group | nil raggruppa (not given at all) also falls back to anno behaviour | 2 groups | PASS | |
| i18n | format_date: year only | 2257 | PASS | |
| i18n | format_date: year + month | maggio 2022 | PASS | |
| i18n | format_date: full date | 5 maggio 2022 | PASS | |
| i18n | format_date: circa | c. 2150 | PASS | |
| i18n | format_date: range | 2256–2257 | PASS | |
| i18n | format_date: range, only the start is approximate | c. 2150–2200 | PASS | |
| i18n | format_date: range, only the end is approximate | 2150–c. 2200 | PASS | |
| i18n | format_stardate: basic | DS 4789.6 | PASS | |
| i18n | group_label: anno mode | 2257 | PASS | |
| i18n | group_label: mese mode, month present | maggio 2022 | PASS | |
| i18n | group_label: mese mode, year-only bucket | 2022 | PASS | |
| i18n | group_label: giorno mode, full date | 5 maggio 2022 | PASS | |
| i18n | group_label: stagione mode, with gruppo | Stagione 3 | PASS | |
| i18n | group_label: stagione mode, ungrouped | Senza gruppo | PASS | |
| i18n | group_label: incerta overrides raggruppa entirely | Data incerta | PASS | |
| render | anno mode + narrativo: year heading links to Timeline YYYY | 2 substring(s) present, 1 absent | PASS | |
| render | anno mode + reale: year heading links to Eventi YYYY instead | 1 substring(s) present, 1 absent | PASS | |
| render | stagione mode: heading is the gruppo text, not auto-linked | 1 substring(s) present, 2 absent | PASS | |
| render | incerta group: dashed class, fixed heading, no date line on its entry | 3 substring(s) present, 1 absent | PASS | |
| render | stardate line shown in narrativo | 1 substring(s) present, 0 absent | PASS | |
| render | stardate line hidden in reale, even if stellare is set | 0 substring(s) present, 1 absent | PASS | |
| render | announced entry gets the hollow-dot class | 1 substring(s) present, 0 absent | PASS | |
| render | mapped categoria renders its configured icon wikitext | 1 substring(s) present, 0 absent | PASS | |
| render | unmapped categoria renders no File link at all | 0 substring(s) present, 1 absent | PASS | |
| render | allinea = sinistra adds the left-float modifier class | 1 substring(s) present, 0 absent | PASS | |
| render | default alignment omits the left-float modifier class | 0 substring(s) present, 1 absent | PASS | |
| render | titolo given renders the title band | 2 substring(s) present, 0 absent | PASS | |
| render | no titolo given omits the title band entirely | 0 substring(s) present, 1 absent | PASS | |
| render | problems_notice: empty list returns nil (nothing to show) | nil | PASS | |
| render | problems_notice: non-empty list includes category and message | 2 substring(s) present, 0 absent | PASS |