migrate to std::ranges
Move the various seq_ functions, as well as std::(stable_)sort, std::accumulate, std::transform, std::find, std::find_if to their C++20 std::ranges counterparts.
This commit is contained in:
@ -260,6 +260,10 @@ test_join()
|
||||
assert_equal(join({"a", "b", "c"}, ""), "abc");
|
||||
assert_equal(join({},"foo"), "");
|
||||
assert_equal(join({"d", "e", "f"}, "foo"), "dfooefoof");
|
||||
// empty elements are joined, too
|
||||
assert_equal(join({"", "a"}, ","), ",a");
|
||||
assert_equal(join({"", ""}, ","), ",");
|
||||
assert_equal(join({"a"}, ","), "a");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user