Skip to content

Commit

Permalink
Update algorithm_ranges.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lackhole committed Aug 24, 2024
1 parent a53fdfb commit f39e884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/algorithm_ranges.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ TEST(VERSIONED(AlgorithmRanges), fill) {

// set all elements to -1 using overload (1)
ranges::fill(v.begin(), v.end(), -1);
EXPECT_PRED2(ranges::equal, v, std::vector<int>(v.size(), -1));
EXPECT_TRUE(ranges::equal(v, std::vector<int>(v.size(), -1)));

// set all element to 10 using overload (2)
ranges::fill(v, 10);
EXPECT_PRED2(ranges::equal, v, views::repeat(10, v.size()));
EXPECT_TRUE(ranges::equal(v, views::repeat(10, v.size())));

std::vector<std::complex<double>> nums{{1, 3}, {2, 2}, {4, 8}};
ranges::fill(nums, {4, 2}); // T gets deduced
Expand Down

0 comments on commit f39e884

Please sign in to comment.