dc5e2a84c9
best_first broke out of the batch generator BEFORE yielding the page that hit max_pages, so it returned max_pages-1 results while BFS/DFS keep the boundary page. Reorder _arun_best_first to yield the successful result first, then check the limit and break. Add a parametrized boundary test asserting best_first (and BFS as reference) yield exactly max_pages.