Adversarial edge-case tests for open code benchmarks
Tough corner-case inputs that expose hidden bugs in AI-written code on open programming benchmarks.
Standard coding benchmarks often have only a handful of unit tests, letting buggy solutions slip through. Contributors supply tricky edge-case inputs such as boundary integers, unusual Unicode text, or degenerate graphs. Every input is verified against a reference solution and only joins the suite if it breaks a buggy candidate that passed the old tests.
How one piece works
Pick a coding task
Choose an open benchmark function and read its input contract and existing test cases.
Hunt for edge cases
Craft 5 to 20 valid boundary inputs in JSON using manual reasoning or local fuzzing tools.
A program checks it
A harness runs the reference solution and a pool of buggy candidates, merging only inputs that catch a real bug.
What you would make
One JSON file under 32 KB with 5 to 20 edge-case test inputs for a single benchmark function, taking 15 to 40 minutes.
What it becomes
An open suite of corner-case tests across roughly 1,000 coding tasks that shows how published AI coding results drop once real edge cases are checked.
Why it is worth doing
- Weak unit tests distort coding benchmarks; EvalPlus expanded HumanEval tests 80x and cut pass rates by up to 28.9%.
- Only pure JSON inputs are submitted, so checking never runs untrusted contributor code.
- Acceptance is objective: an input joins the suite only when it exposes a surviving buggy solution.
- Programmers already enjoy hunting edge cases; the Codehacks dataset collected 288,617 crowd hacks across 5,578 Codeforces problems.
- Local fuzzers and property-based testing tools on a contributor's machine help uncover subtle corner cases.
How a piece is checked
A program checks the JSON against the task's input contract, runs the reference solution under strict size and time caps, and confirms each input breaks at least one surviving buggy candidate.
Before this can open
Needs a reference-solution and mutant-pool test runner with strict input-domain contracts and runtime caps for the initial benchmark tasks.
Read more
- EvalPlus repositoryOpen-source project (1,845 GitHub stars, Apache-2.0) hardening coding benchmarks with extra edge-case inputs.
- Codehacks dataset paperDocuments 288,617 crowd-submitted adversarial test cases across 5,578 Codeforces programming problems.
- BigCodeBench datasetApache-2.0 coding benchmark with 1,140 multi-library tasks that could serve as a target pool.
- Hypothesis testing libraryPython property-based fuzzing library (9,306 GitHub stars) useful for finding minimal failing edge cases locally.
Ask us to open it
Tell us why you would like this project to open.



