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

Open
#851 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@ColtenOuO is already working on this.

Since Nov 25, 2026.

Assessment

This issue has not been assessed yet.

Description

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.
Dominant language
Rust
Stars
236
Forks
153
Avg merge
1d 9h
Merged PRs (30d)
187

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sysprog21/codetrial

All issues in sysprog21/codetrial

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.