diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-03 21:13:38 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-03 21:13:38 +0200 |
| commit | 81a9df4bab615abdd8ef0e2fe7322219ce00ee6d (patch) | |
| tree | 82e358bc2e7f95c7133481e6a5f6a347dbc605c5 /test/cli.t | |
| parent | d0807440309e2357d51cd56c72a443072b0ba57f (diff) | |
| parent | fe136f0952284b9a339252926dfd4675c4a7c3c6 (diff) | |
| download | colitur-1.2.1.tar.gz colitur-1.2.1.zip | |
The OF's readings had never been validated against anything but the lineage
they arrived on. Pointing a second lineage at them found ten corrupt
references on the first run.
Diffstat (limited to 'test/cli.t')
| -rw-r--r-- | test/cli.t | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -578,10 +578,10 @@ error, exit 2, leaving stdout clean for whatever the caller was really trying to capture. $ colitur --help | head -1 - colitur -- deterministic liturgical calendar engine (Roman rite, 1962) + colitur -- deterministic liturgical calendar engine (Roman rite, EF 1962 and OF) $ colitur -h | head -1 - colitur -- deterministic liturgical calendar engine (Roman rite, 1962) + colitur -- deterministic liturgical calendar engine (Roman rite, EF 1962 and OF) $ colitur --help > /dev/null $ colitur -h > /dev/null @@ -601,21 +601,26 @@ is the check that catches help text drifting away from the dispatch: $ for c in easter temporal day readings rubrics; do colitur $c 2026 > /dev/null || echo "$c FAILED"; done `rubrics`' own field count drifted once already (Task 5 landed a fourth -column, creed; --help's "output formats" section and its worked example +column, creed; the documented "output formats" section and its worked example still showed three, and stayed wrong for a whole review round because -nothing here pinned the help BODY, only command dispatch above). This -compares --help's own worked example against what `rubrics` actually +nothing here pinned the documentation BODY, only command dispatch above). This +compares the DOCUMENTED worked example against what `rubrics` actually prints for the identical day, so the two cannot silently drift apart -again in either direction: +again in either direction. - $ colitur --help | grep '^ rubrics date' - rubrics date, formulary slug, source, creed, gloria, preface [name] -- TAB-separated +The comparison reads the man page, not --help: --help was trimmed to one +screen and now points at colitur(1) for every format, so this is where the +worked example lives. The man page is named in test/dune's own cram deps for +exactly this reason -- a cram sandbox holds only what that stanza lists. - $ colitur --help | sed -n '/^ rubrics date/{n;p}' - 2026-01-01[TAB]ef-circumcision[TAB]own[TAB]true[TAB]true[TAB]nativity[TAB]In Octava Nativitatis Domini + $ grep -c 'formulary\\-slug .TAB. source .TAB. creed' ../man/colitur.1 + 1 + + $ sed 's/\\//g' ../man/colitur.1 | grep -o '2026-01-01 \[TAB\] ef-circumcision.*' | head -1 + 2026-01-01 [TAB] ef-circumcision [TAB] own [TAB] true [TAB] true [TAB] nativity [TAB] In Octava Nativitatis Domini - $ colitur rubrics 2026 | grep '^2026-01-01' | sed $'s/\t/[TAB]/g' - 2026-01-01[TAB]ef-circumcision[TAB]own[TAB]true[TAB]true[TAB]nativity + $ colitur rubrics 2026 | grep '^2026-01-01' | sed $'s/\t/ [TAB] /g' + 2026-01-01 [TAB] ef-circumcision [TAB] own [TAB] true [TAB] true [TAB] nativity --version prints the version alone, to standard output, exit 0. Deliberately not embedded in the help text above: this pin would then have to be edited |
