MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_several_containers

Function test_several_containers

tests/mesh/test-vertex-cycle.cpp:113–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void test_several_containers()
114{
115 const geode::detail::VertexCycle< std::vector< geode::index_t > > cycle1{
116 { 0, 1, 2, 3 }
117 };
118 const geode::detail::VertexCycle< absl::InlinedVector< geode::index_t, 4 > >
119 cycle2{ { 2, 3, 0, 1 } };
120 const geode::detail::VertexCycle< std::array< geode::index_t, 3 > > cycle3{
121 { 2, 3, 1 }
122 };
123
124 geode::OpenGeodeMeshException::test( cycle1 == cycle2,
125 "Wrong result for operator== with cycle1 and cycle2" );
126 geode::OpenGeodeMeshException::test( cycle1 != cycle3,
127 "Wrong result for operator!= with cycle1 and cycle3" );
128}
129
130void test()
131{

Callers 1

testFunction · 0.85

Calls 1

testFunction · 0.70

Tested by

no test coverage detected