Lot U2 : settings.reading dit « au-delà du quorum » comme N1.1 et formula.reading (fr, en, es) ; l'anglais en un seul vocabulaire (for et against, jamais yes et no ; favour partout) ; le commentaire de threshold.rs écrit juste (la part la plus haute au quorum, puis qui baisse jusqu'à M), et un test qui le tient

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-11-03 11:25:36 +01:00
co-authored by Claude Opus 5.5
parent b39f7678b0
commit b0e849b9cb
5 changed files with 50 additions and 23 deletions
+4 -2
View File
@@ -69,8 +69,10 @@ describe('the reading of the formula', () => {
describe('English: one vocabulary', () => {
it('« Pour » and « Contre » are for and against, never yes and no', () => {
for (const [k, v] of Object.entries(en)) {
expect(v, k).not.toMatch(/\byes\b/i);
expect(v, k).not.toMatch(/“no”|\{no\} no\b/);
// What is read, the placeholders ({yes}, {no}: the numbers) left out.
const shown = v.replace(/\{\w+\}/g, '#');
expect(shown, k).not.toMatch(/\byes\b/i);
expect(shown, k).not.toMatch(/“no”|# no\b/);
}
});
it('one spelling, the one that dominates: favour', () => {