Solve copy-paste errors.

This commit is contained in:
Jan Eisenhauer
2019-06-11 11:17:01 +02:00
parent 3319fdb0c2
commit a6b6f97a50
2 changed files with 3 additions and 3 deletions

View File

@@ -581,13 +581,13 @@ struct with_lookup_by_first
bool test_heterogeneous_lookup_by_partial_key() bool test_heterogeneous_lookup_by_partial_key()
{ {
flat_set<std::pair<int, int>, with_lookup_by_first> const set1 flat_map<std::pair<int, int>, with_lookup_by_first> const map1
{ {
{{0, 1}, 3}, {{0, 1}, 3},
{{0, 2}, 3}, {{0, 2}, 3},
}; };
auto const first_0_range = uut.equal_range(0); auto const first_0_range = map1.equal_range(0);
return 2 == first_0_range.second - first_0_range.first; return 2 == first_0_range.second - first_0_range.first;
} }

View File

@@ -603,7 +603,7 @@ bool test_heterogeneous_lookup_by_partial_key()
{0, 2}, {0, 2},
}; };
auto const first_0_range = uut.equal_range(0); auto const first_0_range = set1.equal_range(0);
return 2 == first_0_range.second - first_0_range.first; return 2 == first_0_range.second - first_0_range.first;
} }