SPB Git

Repository Public MIT Research preview

S14-F05-filet-de-securite.tex 3.1 KB 45 lines latex

1% S14-F05 — Le filet de sécurité du remaniement : quel test voit quoi.2% Idée : quatre versions du même fichier, trois filets. Les tests de base réussissent partout : leurs3% nombres ronds ne distinguent rien. Seule la caractérisation (les rapports de mars, au caractère près)4% arrête le candidat B, qui a déplacé un arrondi. Le test des deux appels révèle le bogue latent, que5% l'original et le candidat A portent encore : un remaniement n'a pas à le corriger, mais il faudra le6% traiter à part. Verdict : périmètre, tests de base, caractérisation.7% DONNÉES : S14-F05-donnees.tex, généré par demos/src/atlas_s14/exporter_donnees_figure.py (jamais saisi8% à la main) à partir de l'exécution réelle des suites de tests.9\input{S14-F05-donnees.tex}%10\newcommand{\AtlasFigCase}[4]{% {x}{y}{texte}{1 = bon, 0 = mauvais}11  \ifnum#4=112    \node[atlas block valid, text width=19mm, minimum height=7.4mm, align=right, inner xsep=6pt] at (#1,#2) {#3};13    \pic[atlasValid, scale=.3] at (#1-8.6,#2) {atlas check};14  \else15    \node[atlas block hazard, text width=19mm, minimum height=7.4mm, align=right, inner xsep=6pt, line width=1.4pt] at (#1,#2) {#3};16    \pic[atlasHazard, scale=.28] at (#1-8.6,#2) {atlas cross};17  \fi}18\begin{tikzpicture}[x=1mm, y=1mm]19  % En-têtes20  \node[atlas note, anchor=south] at (33,44.3) {plus longue fonction};21  \node[atlas heading, anchor=south] at (33,47.4) {Structure};22  \node[atlas note, anchor=south] at (56,44.3) {nombres ronds};23  \node[atlas heading, anchor=south] at (56,47.4) {Tests de base};24  \node[atlas note, anchor=south] at (81,44.3) {rapports de mars};25  \node[atlas heading, anchor=south] at (81,47.4) {Caractérisation};26  \node[atlas note, anchor=south] at (106,44.3) {bogue latent};27  \node[atlas heading, anchor=south] at (106,47.4) {Deux appels};28  \node[atlas heading, anchor=south] at (131,47.4) {Verdict};29  \draw[atlas link, line width=.5pt] (0,43.6) -- (142,43.6);30  % Lignes31  \foreach \cle/\nom/\y in {Original/Original/38, CandidatA/Candidat A/27.6, CandidatB/Candidat B/17.2, Corrige/Corrigé/6.8}{32    \node[atlas heading, anchor=west] at (0,\y) {\nom};33    \node[atlas label] at (33,\y) {\csname AtlasFig\cle Longue\endcsname\ lignes};34    \AtlasFigCase{56}{\y}{\csname AtlasFig\cle Base\endcsname}{\csname AtlasFig\cle BaseOk\endcsname}35    \AtlasFigCase{81}{\y}{\csname AtlasFig\cle Carac\endcsname}{\csname AtlasFig\cle CaracOk\endcsname}36    \AtlasFigCase{106}{\y}{\csname AtlasFig\cle Appels\endcsname}{\csname AtlasFig\cle AppelsOk\endcsname}37  }38  \node[atlas tag=atlasMuted, font=\AtlasSizeLabel\bfseries] at (131,38) {Départ};39  \node[atlas tag=atlasValid, font=\AtlasSizeLabel\bfseries] at (131,27.6) {\AtlasFigCandidatAVerdict};40  \node[atlas tag=atlasHazard, font=\AtlasSizeLabel\bfseries] at (131,17.2) {\AtlasFigCandidatBVerdict};41  \node[atlas tag=atlasValid, font=\AtlasSizeLabel\bfseries] at (131,6.8) {Référence};42  \draw[atlas link, line width=.5pt] (0,32.8) -- (142,32.8) (0,22.4) -- (142,22.4) (0,12) -- (142,12);43  \node[atlas note, anchor=north west] at (0,1.8) {Coche : filet franchi. Croix et cadre épais : le filet retient la version. Seule la caractérisation arrête le candidat B.};44\end{tikzpicture}45
Files main
Menu

Theme