Skip to content

test(vector): add assertions and fix minor issues in test suite#1282

Merged
trcrsired merged 2 commits into
cppfastio:nextfrom
SekaiArendelle:vec-tests
Jun 21, 2026
Merged

test(vector): add assertions and fix minor issues in test suite#1282
trcrsired merged 2 commits into
cppfastio:nextfrom
SekaiArendelle:vec-tests

Conversation

@SekaiArendelle

Copy link
Copy Markdown
  • Add includes and comprehensive assert() checks to all vector container tests, verifying size, capacity, element values, and state after operations (push_back, pop_back, erase, insert, assign, swap, clear, shrink_to_fit, etc.)
  • Fix typo in back.cc: "The first character" -> "The last character"
  • Fix missing trailing newlines in multiple files
  • Enable previously disabled append_range.cc test (remove #if 0)
  • Add state assertions to shared_ptr index tests for insert_index and erase_index operations

- Add <cassert> includes and comprehensive assert() checks to all
  vector container tests, verifying size, capacity, element values,
  and state after operations (push_back, pop_back, erase, insert,
  assign, swap, clear, shrink_to_fit, etc.)
- Fix typo in back.cc: "The first character" -> "The last character"
- Fix missing trailing newlines in multiple files
- Enable previously disabled append_range.cc test (remove #if 0)
- Add state assertions to shared_ptr index tests for insert_index
  and erase_index operations
@trcrsired trcrsired merged commit 3fb5f3d into cppfastio:next Jun 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants