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

Function test_operator_equals

tests/misc/containers.cpp:718–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716// Equality comparison template (tests == and !=)
717template<typename ContainerFactory>
718void test_operator_equals() {
719 auto c1 = ContainerFactory::create(1, 2, 3);
720 auto c2 = ContainerFactory::create(1, 2, 3);
721 auto c3 = ContainerFactory::create(1, 2, 4);
722
723 FL_CHECK(c1 == c2);
724 FL_CHECK_FALSE(c1 != c2);
725 FL_CHECK(c1 != c3);
726 FL_CHECK_FALSE(c1 == c3);
727}
728
729// Less-than comparison template (tests < and <=)
730template<typename ContainerFactory>

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected