mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 04:06:06 +00:00

The existing exceptions tests for `vector<T>` have several issues: some tests did not throw exceptions at all, making them not useful for exception-safety testing, and some tests did not throw exceptions at the intended points, failing to serve their expected purpose. This PR fixes those tests for vector's constructors. Morever, this PR extracted common classes and utilities into a separate header file, and renamed those classes using more descriptive names.