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

Method compareTranslateMutation

source/EngineTests/MutationTests.cpp:527–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525 }
526
527 bool compareTranslateMutation(std::vector<uint8_t> const& before, std::vector<uint8_t> const& after)
528 {
529 auto beforeGenome = GenomeDescriptionService::get().convertBytesToDescription(before);
530 auto afterGenome = GenomeDescriptionService::get().convertBytesToDescription(after);
531
532 std::set<CellGenomeDescription> beforeGenomeRollout;
533 rollout(beforeGenome, beforeGenomeRollout);
534 std::set<CellGenomeDescription> afterGenomeRollout;
535 rollout(afterGenome, afterGenomeRollout);
536
537 return beforeGenomeRollout == afterGenomeRollout;
538 }
539
540 bool compareCellColorMutation(std::vector<uint8_t> const& before, std::vector<uint8_t> const& after, std::set<int> const& allowedColors)
541 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected