mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
util/rmq: Fix test upper bound
Since range_minimum_query takes a half-open interval, we should be testing with j == width Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39165>
This commit is contained in:
parent
99cc0d4fdd
commit
2219f879f3
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ TEST(range_minimum_query_test, range_minimum_query_test)
|
|||
|
||||
range_minimum_query_table_preprocess(&table);
|
||||
for (uint32_t i = 0; i < width; i++) {
|
||||
for (uint32_t j = i + 1; j < width; j++) {
|
||||
for (uint32_t j = i + 1; j <= width; j++) {
|
||||
// printf("%i, %i\n", i, j);
|
||||
EXPECT_EQ(range_minimum_query(&table, i, j),
|
||||
rmq_naive(&table, i, j));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue