Skip to content

Commit

Permalink
Removed std::plus<>
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc committed Mar 12, 2023
1 parent edc4ef0 commit 8ab4e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/inclusive-scan-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEST_CASE("Inclusive scan changing and creating elements", "[InclusiveScan][Basi
int expected[] = { 3, 4, 8, 9, 14, 23, 25, 31 };
CHECK(std::equal(std::begin(expected), std::end(expected), std::begin(scan)));

scan = lz::iScanFrom(arr, 2, std::plus<>());
scan = lz::iScanFrom(arr, 2);
REQUIRE(std::distance(scan.begin(), scan.end()) == std::distance(std::begin(arr), std::end(arr)));
int expected2[] = { 5, 6, 10, 11, 16, 25, 27, 33 };
CHECK(std::equal(std::begin(expected2), std::end(expected2), std::begin(scan)));
Expand Down

0 comments on commit 8ab4e90

Please sign in to comment.