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:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user