Commit 63be86b
committed
Fix P1 bug: test_query_intersections_deterministic should compare unordered collections
The test was using np.array_equal() to compare results byte-for-byte, but
query_intersections() returns pairs from an unordered map with parallel
execution, so the order is not guaranteed and can vary between invocations
or CPU architectures.
Fixed by converting results to sets for order-independent comparison,
which correctly validates that the same pairs are returned even if the
order differs.1 parent a6a2834 commit 63be86b
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
| |||
331 | 335 | | |
332 | 336 | | |
333 | 337 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| |||
0 commit comments