diff options
author | Peng Liu <winner245@hotmail.com> | 2024-12-19 11:19:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 11:19:25 -0500 |
commit | 4039a79de71bd969ef5bf944fd9f46430338ff7e (patch) | |
tree | ca7a9d2b32554021837494b9b56b45f903c670f2 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | cc246d4a29a0ece8470d2baa1f98245446051fe3 (diff) | |
download | llvm-4039a79de71bd969ef5bf944fd9f46430338ff7e.zip llvm-4039a79de71bd969ef5bf944fd9f46430338ff7e.tar.gz llvm-4039a79de71bd969ef5bf944fd9f46430338ff7e.tar.bz2 |
[libc++][test] Improve tests for assign in std::vector and vector<bool> (#119163)
This PR enhances the test coverage for std::vector::assign by adding new
tests for several important test cases that were previously missing, as
shown in the following table:
| test cases | forward_iterator | input_iterator |
|-----------------------------------|------------------|----------------|
| new_size > capacity() | Yes | Yes |
| size() < new_size <= capacity() | No | No |
| new_size <= size() | No | No |
Similarly, no tests have previously covered `assign(InputIterator, InputIterator)`
and `assign(size_type, const value_type&)` for `vector<bool>`.
With this patch applied, all missing tests are covered.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions