CR76: Prüfer beurteilen, was eine Formel rechnet, nicht wie sie geschrieben ist #7

Merged
oliver.maklott merged 1 commit from cr76-checks-judge-value into main 2026-11-27 23:50:19 +01:00

Code-Review 3, Befunde K7, K14, K15, K16 (Pack tabellenkalkulation).

  • K7: aufrunden (D17, D18) und reparieren (D27) verglichen den Text der Formel. Jetzt zählen der Wert, dass eine Formel ihn liefert, und welche Zellen sie liest. =OBERGRENZE(D15;1), =ZÄHLENWENN(B5:B10;">0") und =C27*B27 sind richtig; getippte Zahlen, =3 und Formeln über andere Zellen bleiben falsch, mit dem bisherigen Feedback.
  • K16: Getippte Formeln in pools/formeln gelten in jeder Schreibweise (mit oder ohne =, Leerzeichen, Groß- und Kleinschreibung, Reihenfolge der Operanden). Das Komma zwischen Argumenten bleibt die bekannte falsche Antwort mit dem Hinweis auf den Strichpunkt.
  • K14: komma-import nimmt die Arbeitsmappe aus klassenfest.csv nicht mehr an (Überschrift „Preis (EUR)“, neues Feedback nicht-komma-datei). als-csv prüft die Ergebnisse in D2:D8 statt nur Überschrift und Zeilenzahl.
  • K15: anteile sagt zuerst, dass Gesamt und Summe fehlen, statt die Anteilsformel zu bemängeln.

Akzeptanz:

  • Die drei Formelprüfungen urteilen nach dem Wert; richtige Formeln in anderer Schreibweise gelten, getippte Konstanten nicht
  • K14 bis K16 je mit Test behoben
  • Je geänderter Prüfung mindestens drei richtige Schreibweisen und die bekannten falschen Antworten als Tests
  • Texte unverändert, bis auf ein neues Feedback (nicht-komma-datei)
  • pack test (302 bestanden) und pack build grün mit CLI 0.60.0; Bündel 55 → 58 KB
  • Version und Release: eigener Commit nach Freigabe

Kein Eintrag in einer Entscheidungsdatei (das Pack führt keine); die Regel steht im README.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2

Code-Review 3, Befunde K7, K14, K15, K16 (Pack `tabellenkalkulation`). - **K7:** `aufrunden` (D17, D18) und `reparieren` (D27) verglichen den Text der Formel. Jetzt zählen der Wert, dass eine Formel ihn liefert, und welche Zellen sie liest. `=OBERGRENZE(D15;1)`, `=ZÄHLENWENN(B5:B10;">0")` und `=C27*B27` sind richtig; getippte Zahlen, `=3` und Formeln über andere Zellen bleiben falsch, mit dem bisherigen Feedback. - **K16:** Getippte Formeln in `pools/formeln` gelten in jeder Schreibweise (mit oder ohne `=`, Leerzeichen, Groß- und Kleinschreibung, Reihenfolge der Operanden). Das Komma zwischen Argumenten bleibt die bekannte falsche Antwort mit dem Hinweis auf den Strichpunkt. - **K14:** `komma-import` nimmt die Arbeitsmappe aus `klassenfest.csv` nicht mehr an (Überschrift „Preis (EUR)“, neues Feedback `nicht-komma-datei`). `als-csv` prüft die Ergebnisse in D2:D8 statt nur Überschrift und Zeilenzahl. - **K15:** `anteile` sagt zuerst, dass Gesamt und Summe fehlen, statt die Anteilsformel zu bemängeln. Akzeptanz: - [x] Die drei Formelprüfungen urteilen nach dem Wert; richtige Formeln in anderer Schreibweise gelten, getippte Konstanten nicht - [x] K14 bis K16 je mit Test behoben - [x] Je geänderter Prüfung mindestens drei richtige Schreibweisen und die bekannten falschen Antworten als Tests - [x] Texte unverändert, bis auf ein neues Feedback (`nicht-komma-datei`) - [x] `pack test` (302 bestanden) und `pack build` grün mit CLI 0.60.0; Bündel 55 → 58 KB - [ ] Version und Release: eigener Commit nach Freigabe Kein Eintrag in einer Entscheidungsdatei (das Pack führt keine); die Regel steht im README. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
CR76: checks judge what a formula computes, not how it is written
All checks were successful
pack / pack (pull_request) Successful in 10s
pack / pack (push) Successful in 10s
5c13c64920
Code review 3, K7 and K14 to K16.

K7: three checks of workbooks compared the text of a formula. D17 of
klassenfest.xlsx wanted ROUNDUP, so =OBERGRENZE(D15;1) was refused; D18
wanted COUNT or COUNTA, so =ZÄHLENWENN(...) was refused; D27 of fehler.xlsx
had to read like D25, so =C27*B27 was refused. They now look at the value,
at whether a formula gave it, and at the cells the formula reads (from the
bridge's relative form `fr`): D17 is 3 from a function that reads the
sheet, D18 is 6 from a function over the six rows of the list, D27 is 1,5
from a formula that reads B27 and C27. A typed number, =3, =AUFRUNDEN(2,44;0)
and =ANZAHL2(A13:A18) do not pass; the feedback is the one each step had.

K16: a typed formula in the pool `formeln` is compared as text by the
platform, and a question takes no checker of its own. formula() now lists
every spelling: with or without =, spaces between the parts, upper case,
lower case or "Max", the operands of *, +, MAX and MIN in either order, a
$ before a column that does not matter when filling down. A comma between
arguments stays the known wrong answer with the hint about the semicolon,
in the same spellings.

K14: komma-import passed with the workbook made from klassenfest.csv in
the level before (the same list). It now wants the heading only
klassenfest-komma.csv has, "Preis (EUR)", and says so (new feedback
nicht-komma-datei). als-csv checked a heading and the number of lines; it
now reads the results in D2:D8, also as "13,50 €" or "13.5".

K15: with the template the step offers again, column D is empty and every
share shows #DIV/0!; anteile blamed the share formula. It now says first
that Gesamt and the sum are missing (gesamt-fehlt, summe-fehlt,
summe-falsch for 0).

Tests: at least three right spellings and the known wrong answers for
every changed check; formula cells are built with the library's own
relative() and functions(), the CSV cases run through its reader.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4hWqPfFUKC4KEEmcM2
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod-challenges/Tabellenkalkulation!7
No description provided.