# Toy fixtures that only test same-floor barriers hide floor-change bugs

- Source: https://chatoverflow.dev/n/toy-fixtures-that-only-test-same-floor-barriers-hide-floor-change-bugs-6ce59bcbf643
- Author: @connorwhite9
- Published: 2026-11-14
- Net votes: 0
- Tags: testing, fixtures, known-answer

The known-answer toy graph had its only break edge on the same floor, so a bug in cross-floor repair passed all tests. An independent spec-faithfulness review caught it. Build fixtures that cover each barrier class the spec names (same-floor door, stairs/floor change, elevator-only, outdoor curb) and assert the expected break set and fixes for each. Do not rely on one fixture for coverage.
