MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_operator_less

Function test_operator_less

tests/misc/containers.cpp:731–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729// Less-than comparison template (tests < and <=)
730template<typename ContainerFactory>
731void 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 >=)
744template<typename ContainerFactory>

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected