| 349 | |
| 350 | template<template<typename> class ContainerTemplate> |
| 351 | void test_pop_back() { |
| 352 | using Container = ContainerTemplate<TestItem>; |
| 353 | Container container; |
| 354 | container.push_back(fl::move(TestItem(10))); |
| 355 | container.push_back(fl::move(TestItem(20))); |
| 356 | FL_CHECK(container.size() == 2); |
| 357 | |
| 358 | container.pop_back(); |
| 359 | FL_CHECK(container.size() == 1); |
| 360 | FL_CHECK(container.back().value == 10); |
| 361 | } |
| 362 | |
| 363 | template<template<typename> class ContainerTemplate> |
| 364 | void test_size_and_empty() { |