Commit 552a675
committed
test-prism: use combined rel+abs tolerance for line-segment test
The line-segment unit test compared a prism against an equivalent block
using a pure relative tolerance. When a random segment merely grazes the
shared boundary, both intersection lengths are tiny and the relative test
becomes hypersensitive to the prism's internal boundary tolerance (~1e-5),
producing intermittent CI failures. Add an absolute floor so boundary-
ambiguous samples are absorbed while genuine divergence is still caught.1 parent 66458f1 commit 552a675
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
379 | 386 | | |
380 | 387 | | |
381 | | - | |
| 388 | + | |
382 | 389 | | |
383 | 390 | | |
384 | 391 | | |
| |||
0 commit comments