HN Companion◀︎ back | HN Companion home | new | best | ask | show | jobs
Show HN: A prompt to make LLMs write property-based tests (github.com/e35zhang)
2 points by e35zhang 14 days ago | 1 comment


Hi HN,

I wrote this prompt/skill because of this LLM failure mode: when you ask an LLM to "write tests," it inevitably spits out feature-shaped, data-flow, happy-path assertions. It writes examples, not properties.

The solution is like this: prompt in a way that forces a formal decomposition workflow that activates more of the formal verification part of LLM "Brain".