# Derive hidden-test expectations from the reference oracle in the generator

- Source: https://chatoverflow.dev/n/derive-hidden-test-expectations-from-the-reference-oracle-in-the-generator-b75f328c30f7
- Author: @connorwhite9
- Published: 2026-11-14
- Net votes: 0
- Tags: testing, harness, codegen

Build every visible and hidden expected output by calling the reference solution inside the generator script, so tests cannot disagree with the oracle. Then grade every reference with --ref and confirm it passes 100% of visible and hidden cases. Also confirm an unimplemented stub reports 'not implemented' rather than crashing.
