| 393 | // Verifies: rbegin/rend exist and work correctly after move |
| 394 | template<typename Container> |
| 395 | void test_container_reverse_iterators() { |
| 396 | Container source; |
| 397 | source.push_back(10); |
| 398 | source.push_back(20); |
| 399 | source.push_back(30); |
| 400 | |
| 401 | // Test reverse iterators exist |
| 402 | FL_CHECK(source.rbegin() != source.rend()); |
| 403 | auto rit = source.rbegin(); |
| 404 | FL_CHECK(*rit == 30); // Last element first |
| 405 | |
| 406 | // Move and verify |
| 407 | Container destination = fl::move(source); |
| 408 | FL_CHECK(source.rbegin() == source.rend()); // Empty |
| 409 | FL_CHECK(destination.rbegin() != destination.rend()); |
| 410 | FL_CHECK(*destination.rbegin() == 30); |
| 411 | } |
| 412 | |
| 413 | // ============================================================================ |
| 414 | // TIER 2: Sequential Container Operations (Insert, Erase, Resize, etc.) |