Lot T2 : l'interface dit ce que fait la formule (inertia.explain, formula.reading : la part demandée, la plus haute au quorum, baisse quand la participation monte, jamais « presque l'unanimité ») ; quorum.error.voted « ne change pas », plus « ne change plus » ; fr, en, es

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-11-03 10:13:32 +01:00
co-authored by Claude Opus 5.5
parent a32912373d
commit dc0c477f88
5 changed files with 26 additions and 10 deletions
+15
View File
@@ -28,6 +28,21 @@ describe('five levels of inertia', () => {
expect(fr['formula.reading']).toContain('les votants qui manquent comptent comme « non »');
expect(fr['settings.quorum.note']).toContain('avant le premier vote');
});
it('the share asked is highest at the quorum, never near-unanimity because few vote (review of M6b, lot T2)', () => {
const lowTurnout = /unanimi|peu de gens votent|faible participation|few people vote|low turnout|vota poca gente|poca participación/;
for (const cat of [fr, en, es]) {
for (const k of ['inertia.explain', 'formula.reading'] as const) expect(cat[k], k).not.toMatch(lowTurnout);
// After the act « supprime », or a direct vote withdrawn, the quorum changes again.
expect(cat['quorum.error.voted']).not.toMatch(/ne change plus|no longer changes|ya no cambia/);
}
expect(fr['inertia.explain']).toBe(
"Plus l'inertie est haute, plus il faut de voix pour changer ce texte. Sous le quorum, les votants qui manquent comptent comme « non » ; au-delà, la part de « pour » demandée baisse quand la participation monte.",
);
expect(fr['formula.reading']).toBe(
"Sous le quorum Q, les votants qui manquent comptent comme « non ». Au-delà, la part de « pour » demandée, la plus haute au quorum, baisse quand la participation monte ; quand tout le monde vote, la majorité M suffit.",
);
expect(fr['quorum.error.voted']).toBe("Quelqu'un a déjà voté sur cet article : son quorum ne change pas.");
});
it('a change of inertia is said to be voted at the level of the article, no longer one above', () => {
for (const cat of [fr, en, es]) expect(cat['inertia.change.note']).toContain('{level}');
expect(fr['inertia.change.note']).toContain("à l'inertie de l'article");