mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
tests/unit-iterators2: use std::ranges::equals for range comparisons (#3950)
Closes https://github.com/nlohmann/json/issues/3927
This commit is contained in:
parent
b2306145e1
commit
660d0b5856
@ -943,7 +943,7 @@ TEST_CASE("iterators 2")
|
||||
json j_expected{5, 4, 3, 2, 1};
|
||||
|
||||
auto reversed = j | std::views::reverse;
|
||||
CHECK(reversed == j_expected);
|
||||
CHECK(std::ranges::equal(reversed, j_expected));
|
||||
}
|
||||
|
||||
SECTION("transform")
|
||||
|
Loading…
Reference in New Issue
Block a user