Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e27cbbbeff |
@@ -54,14 +54,8 @@ try {
|
|||||||
assert(g.candidats[0].dans_parcours === false && g.candidats[0].dans_adr === true && g.candidats[0].eprouve === false, 'the candidate says where it is cited — ADR yes, journey no, test no');
|
assert(g.candidats[0].dans_parcours === false && g.candidats[0].dans_adr === true && g.candidats[0].eprouve === false, 'the candidate says where it is cited — ADR yes, journey no, test no');
|
||||||
assert(!('candidats' in journal()) , 'candidates live under gardes_nommees, not at the journal root');
|
assert(!('candidats' in journal()) , 'candidates live under gardes_nommees, not at the journal root');
|
||||||
// Backward compatibility: a tuning without the key gets no section at all.
|
// Backward compatibility: a tuning without the key gets no section at all.
|
||||||
// On its OWN copy of the fixture: a second run on `repo` would rewrite the
|
execFileSync(process.execPath, [join(here, 'run.mjs'), '--config', 'reglage-sans-gardes.yaml', '--repo', repo], { encoding: 'utf8', stdio: 'pipe' });
|
||||||
// journal and falsify the assertions that follow (caught by the self-test
|
assert(!('gardes_nommees' in journal()), 'a tuning that does not ask for named guards changes nothing');
|
||||||
// itself on 2026-09-21 — a guard that shares state with what it guards).
|
|
||||||
const repo2 = mkdtempSync(join(tmpdir(), 'instrument-selftest-compat-'));
|
|
||||||
cpSync(join(here, 'selftest/fixture'), repo2, { recursive: true });
|
|
||||||
execFileSync(process.execPath, [join(here, 'run.mjs'), '--config', 'reglage-sans-gardes.yaml', '--repo', repo2], { encoding: 'utf8', stdio: 'pipe' });
|
|
||||||
const journal2 = parseYaml(readFileSync(join(repo2, 'docs/parcours/_mesures/derniere-execution.yaml'), 'utf8'));
|
|
||||||
assert(!('gardes_nommees' in journal2), 'a tuning that does not ask for named guards changes nothing');
|
|
||||||
assert(byInv(first, 'INV-002')?.etat === 'mal_domicilie', 'INV-002 mal_domicilie — proven only away from home');
|
assert(byInv(first, 'INV-002')?.etat === 'mal_domicilie', 'INV-002 mal_domicilie — proven only away from home');
|
||||||
assert(byInv(first, 'INV-003')?.etat === 'aucun_locus', 'INV-003 aucun_locus — named by no test');
|
assert(byInv(first, 'INV-003')?.etat === 'aucun_locus', 'INV-003 aucun_locus — named by no test');
|
||||||
assert(journal().constats_nouveaux === 3 && journal().invariants === 3, 'journal counts the run');
|
assert(journal().constats_nouveaux === 3 && journal().invariants === 3, 'journal counts the run');
|
||||||
|
|||||||
Reference in New Issue
Block a user