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

Abierto
#851 3 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@ColtenOuO ya está trabajando en esto.

Desde el 25/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
236
Forks
153
Merge medio
1 d 9 h
PR fusionados (30 d)
187

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sysprog21/codetrial

Todos los issues de sysprog21/codetrial

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.