The project is offered under either licence, at the user's choice. Every source header now carries the SPDX expression in place of the AGPL line; the copyright line is unchanged. LICENSES/ holds both published texts, pinned by SHA-256 and identical to the copies the page ships. The root LICENSE becomes a short notice: the full AGPL text there would make forges and licence scanners report the AGPL alone. Checked: 685 header lines swapped and nothing else; node 6264, guards 207, build test 8, browser 1420, documentation verifier 0 faults. --- FR --- [UPD] licence : double AGPL-3.0-or-later ou LiLiQ-R+, en-têtes SPDX Le projet est offert sous l'une ou l'autre licence, au choix de l'utilisateur. Chaque en-tête de source porte l'expression SPDX à la place de la ligne AGPL ; la ligne de copyright ne change pas. LICENSES/ garde les deux textes publiés, épinglés par SHA-256 et identiques aux copies que la page livre. LICENSE devient une courte notice : le texte AGPL entier y ferait annoncer l'AGPL seule par les forges et les détecteurs de licence. Vérifié : 685 lignes d'en-tête remplacées, rien d'autre ; node 6264, gardes 207, construction 8, navigateur 1420, documentation 0 faute. Assisted-by: Claude Opus 5.5
19 lines
724 B
JavaScript
19 lines
724 B
JavaScript
// © 2026 TechnoLibre (http://www.technolibre.ca)
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later OR LiLiQ-Rplus-1.1
|
|
|
|
// Module inventé que mute test/mutation.long.test.js : chaque fonction porte
|
|
// un site dont le mutant a une issue connue sous calcul.epreuve.js.
|
|
|
|
// La somme des entiers de 1 à n. « total += i » → « total -= i » change la
|
|
// somme ; « i++ » → « i-- » ne termine pas dès que n ≥ 1.
|
|
export function somme(n) {
|
|
let total = 0;
|
|
for (let i = 1; i <= n; i++) total += i;
|
|
return total;
|
|
}
|
|
|
|
// Le plus grand de deux nombres. « a > b » → « a >= b » rend le même nombre
|
|
// pour tout couple : un mutant équivalent, qui survit.
|
|
export function plusGrand(a, b) {
|
|
return a > b ? a : b;
|
|
}
|