[yul-phaser] Chromosome: Make randomOptimisationStep() public

- And add tests now that it's public.
This commit is contained in:
Kamil Śliwak
2020-02-16 02:18:21 +01:00
parent 46d69d0941
commit 4ee9174454
2 changed files with 23 additions and 1 deletions
+2 -1
View File
@@ -52,9 +52,10 @@ public:
bool operator==(Chromosome const& _other) const { return m_optimisationSteps == _other.m_optimisationSteps; }
bool operator!=(Chromosome const& _other) const { return !(*this == _other); }
static std::string const& randomOptimisationStep();
private:
static std::vector<std::string> allStepNames();
static std::string const& randomOptimisationStep();
std::vector<std::string> m_optimisationSteps;
};