| 729 | // Less-than comparison template (tests < and <=) |
| 730 | template<typename ContainerFactory> |
| 731 | void test_operator_less() { |
| 732 | auto c1 = ContainerFactory::create(1, 2, 3); |
| 733 | auto c2 = ContainerFactory::create(1, 2, 4); |
| 734 | auto c3 = ContainerFactory::create(1, 2, 3); |
| 735 | |
| 736 | FL_CHECK(c1 < c2); |
| 737 | FL_CHECK_FALSE(c2 < c1); |
| 738 | FL_CHECK(c1 <= c2); |
| 739 | FL_CHECK(c1 <= c3); |
| 740 | FL_CHECK_FALSE(c2 <= c1); |
| 741 | } |
| 742 | |
| 743 | // Greater-than comparison template (tests > and >=) |
| 744 | template<typename ContainerFactory> |