Skip to content

Commit

Permalink
[FIX] iterator_test_template
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Dec 20, 2024
1 parent a5b0a05 commit 003e03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/range/iterator_test_template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,14 @@ inline void jump_backward_test(it_begin_t && it_begin, rng_t && rng)
// Backward copy it + (-n)
for (size_t n = 0; n < sz; ++n)
{
expect_iter_equal<test_type>(pre_end_it + (-1 * n), pre_end_rng_it - n);
expect_iter_equal<test_type>(pre_end_it + (-static_cast<std::ptrdiff_t>(n)), pre_end_rng_it - n);
expect_iter_equal<test_type>(pre_end_it, pre_end_rng_it);
}

// Backward copy friend through (-n) + it
for (size_t n = 0; n < sz; ++n)
{
expect_iter_equal<test_type>((-1 * n) + pre_end_it, pre_end_rng_it - n);
expect_iter_equal<test_type>((-static_cast<std::ptrdiff_t>(n)) + pre_end_it, pre_end_rng_it - n);
expect_iter_equal<test_type>(pre_end_it, pre_end_rng_it);
}
}
Expand Down

0 comments on commit 003e03a

Please sign in to comment.