Repository Public MIT Research preview
1% S13-F05 — Tableau de verdicts des trois correctifs écrits pour le cours.2% DONNÉES : S13-F05-donnees.tex, généré par demos/src/atlas_s13/exporter_donnees_figure.py (jamais saisi3% à la main) à partir de l'exécution réelle des suites de tests.4% Idée : les tests livrés réussissent trois fois sur trois ; ils ne distinguent rien. Le correctif 25% n'est trahi que par la liste des fichiers du diff, le correctif 1 que par un test absent au départ.6\input{S13-F05-donnees.tex}%7\newcommand{\AtlasFigCase}[4]{% {x}{y}{texte}{1 = bon, 0 = mauvais}8 \ifnum#4=19 \node[atlas block valid, text width=17mm, minimum height=8.6mm, align=right, inner xsep=6pt] at (#1,#2) {#3};10 \pic[atlasValid, scale=.32] at (#1-7.5,#2) {atlas check};11 \else12 \node[atlas block hazard, text width=17mm, minimum height=8.6mm, align=right, inner xsep=6pt, line width=1.4pt] at (#1,#2) {#3};13 \pic[atlasHazard, scale=.3] at (#1-7.5,#2) {atlas cross};14 \fi}15\begin{tikzpicture}[x=1mm, y=1mm]16 % En-têtes17 \node[atlas note, anchor=south] at (37,42.5) {fichiers · lignes};18 \node[atlas heading, anchor=south] at (37,45.6) {Le diff};19 \node[atlas note, anchor=south] at (62,42.5) {fichiers hors tâche};20 \node[atlas heading, anchor=south] at (62,45.6) {Périmètre};21 \node[atlas note, anchor=south] at (87,42.5) {suite fournie};22 \node[atlas heading, anchor=south] at (87,45.6) {Tests livrés};23 \node[atlas note, anchor=south] at (112,42.5) {avec le test manquant};24 \node[atlas heading, anchor=south] at (112,45.6) {Tests de référence};25 \node[atlas heading, anchor=south] at (134,45.6) {Verdict};26 \draw[atlas link, line width=.5pt] (0,41.6) -- (142,41.6);27 % Lignes28 \foreach \cle/\nom/\y in {Un/Correctif 1/34, Deux/Correctif 2/21, Trois/Correctif 3/8}{29 \node[atlas heading, anchor=west] at (0,\y) {\nom};30 \node[atlas label] at (37,\y) {\csname AtlasFig\cle Fichiers\endcsname\ · \csname AtlasFig\cle Lignes\endcsname};31 \AtlasFigCase{62}{\y}{\csname AtlasFig\cle Hors\endcsname}{\csname AtlasFig\cle PerimetreOk\endcsname}32 \AtlasFigCase{87}{\y}{\csname AtlasFig\cle Livres\endcsname}{\csname AtlasFig\cle LivresOk\endcsname}33 \AtlasFigCase{112}{\y}{\csname AtlasFig\cle Reference\endcsname}{\csname AtlasFig\cle ReferenceOk\endcsname}34 \ifnum\csname AtlasFig\cle Accepte\endcsname=135 \node[atlas tag=atlasValid, font=\AtlasSizeLabel\bfseries] at (134,\y) {\csname AtlasFig\cle Verdict\endcsname};36 \else37 \node[atlas tag=atlasHazard, font=\AtlasSizeLabel\bfseries] at (134,\y) {\csname AtlasFig\cle Verdict\endcsname};38 \fi39 }40 \draw[atlas link, line width=.5pt] (0,27.5) -- (142,27.5) (0,14.5) -- (142,14.5);41 \node[atlas note, anchor=north west] at (0,1.2) {Coche : contrôle réussi. Croix et cadre épais : contrôle échoué. Les trois correctifs réussissent la suite fournie.};42\end{tikzpicture}43