| 743 | // Greater-than comparison template (tests > and >=) |
| 744 | template<typename ContainerFactory> |
| 745 | void test_operator_greater() { |
| 746 | auto c1 = ContainerFactory::create(1, 2, 4); |
| 747 | auto c2 = ContainerFactory::create(1, 2, 3); |
| 748 | auto c3 = ContainerFactory::create(1, 2, 4); |
| 749 | |
| 750 | FL_CHECK(c1 > c2); |
| 751 | FL_CHECK_FALSE(c2 > c1); |
| 752 | FL_CHECK(c1 >= c2); |
| 753 | FL_CHECK(c1 >= c3); |
| 754 | FL_CHECK_FALSE(c2 >= c1); |
| 755 | } |
| 756 | |
| 757 | // ============================================================================ |
| 758 | // Iterator Contract Test Functions |