MCPcopy Create free account
hub / github.com/chrxh/alien / compare

Method compare

source/EngineTests/IntegrationTestFramework.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool IntegrationTestFramework::compare(DataDescription left, DataDescription right) const
136{
137 std::sort(left.cells.begin(), left.cells.end(), [](auto const& left, auto const& right) { return left.id < right.id; });
138 std::sort(right.cells.begin(), right.cells.end(), [](auto const& left, auto const& right) { return left.id < right.id; });
139 std::sort(left.particles.begin(), left.particles.end(), [](auto const& left, auto const& right) { return left.id < right.id; });
140 std::sort(right.particles.begin(), right.particles.end(), [](auto const& left, auto const& right) { return left.id < right.id; });
141 return left == right;
142}
143
144bool IntegrationTestFramework::compare(CellDescription left, CellDescription right) const
145{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected