Skip to content

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

Open
SekaiArendelle wants to merge 2 commits into
cppfastio:nextfrom
SekaiArendelle:vec-tests
Open

test(vector): add assertions and fix minor issues in test suite#1282
SekaiArendelle wants to merge 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
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.

1 participant