Nothing checks that a judge case's expected value is correct

Aperta
#851 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ColtenOuO ci sta già lavorando.

Dal 25/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

scripts/problem_bank/rules.py and gen-problems.py --check validate the shape of problem-bank/judges.json: labels, case count, boundary cases, types. The golden hash in tests/golden/task-posed.json only notices that a judge changed, and a PR that edits a judge updates it too. No step runs a correct solution against the cases, so a wrong expected passes CI and fails a correct candidate in an interview.

About ten of the 151 judges (827 cases) have a browser test that runs a correct solution over every case, as #761 does for word-pattern. The rest depend on a reviewer working each case out by hand, which gets hard when one PR adds a dozen edge cases.

Proposal:

  1. Allow a Python reference solution per judge under problem-bank/. gen-problems.py --check runs it on every case through the judge's own checker (17 judges use one other than exact) and fails on a mismatch.
  2. Fill in the remaining judges in small batches.
Lingua principale
Rust
Stelle
236
Fork
153
Merge medio
1g 9h
PR unite (30g)
187

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.