1
0
mirror of https://github.com/nlohmann/json synced 2024-11-24 21:00:13 +00: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:
Arsen Arsenović 2023-03-05 14:11:22 +01:00 committed by GitHub
parent b2306145e1
commit 660d0b5856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")