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

Function test_operator_greater

tests/misc/containers.cpp:745–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743// Greater-than comparison template (tests > and >=)
744template<typename ContainerFactory>
745void 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

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected