Commit 0b2a9d5
committed
test(perturbation-sim): lock basin_lambda2 key-count precondition
CodeRabbit nitpick on #512: the new keys.len() == grid.n assert had no
regression test. Add a #[should_panic] test asserting a short key vector
(keys.len() == n-1) trips the precondition with the expected message,
so a future refactor can't silently drop the guard.
https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p11 parent b2732db commit 0b2a9d5
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
182 | 193 | | |
0 commit comments