Skip to content

Commit 9412165

Browse files
authored
Merge pull request #15728 from dxsullivan/fix
Fix function name enumerateOptmisationSteps
2 parents fc45ba0 + 76df980 commit 9412165

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/yulPhaser/Chromosome.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ BOOST_AUTO_TEST_CASE(makeRandom_should_use_every_possible_step_with_the_same_pro
7575
constexpr int samplesPerStep = 500;
7676
constexpr double relativeTolerance = 0.02;
7777

78-
std::map<std::string, size_t> stepIndices = enumerateOptmisationSteps();
78+
std::map<std::string, size_t> stepIndices = enumerateOptimisationSteps();
7979
auto chromosome = Chromosome::makeRandom(stepIndices.size() * samplesPerStep);
8080

8181
std::vector<size_t> samples;
@@ -151,7 +151,7 @@ BOOST_AUTO_TEST_CASE(randomOptimisationStep_should_return_each_step_with_same_pr
151151
constexpr int samplesPerStep = 500;
152152
constexpr double relativeTolerance = 0.02;
153153

154-
std::map<std::string, size_t> stepIndices = enumerateOptmisationSteps();
154+
std::map<std::string, size_t> stepIndices = enumerateOptimisationSteps();
155155
std::vector<size_t> samples;
156156
for (size_t i = 0; i <= stepIndices.size() * samplesPerStep; ++i)
157157
samples.push_back(stepIndices.at(Chromosome::randomOptimisationStep()));

test/yulPhaser/Population.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ BOOST_FIXTURE_TEST_CASE(makeRandom_should_return_population_with_random_chromoso
185185
constexpr int chromosomeLength = 30;
186186
constexpr double relativeTolerance = 0.01;
187187

188-
std::map<std::string, size_t> stepIndices = enumerateOptmisationSteps();
188+
std::map<std::string, size_t> stepIndices = enumerateOptimisationSteps();
189189
auto population = Population::makeRandom(m_fitnessMetric, populationSize, chromosomeLength, chromosomeLength);
190190

191191
std::vector<size_t> samples;

test/yulPhaser/TestHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ std::vector<size_t> phaser::test::chromosomeLengths(Population const& _populatio
5353
return lengths;
5454
}
5555

56-
std::map<std::string, size_t> phaser::test::enumerateOptmisationSteps()
56+
std::map<std::string, size_t> phaser::test::enumerateOptimisationSteps()
5757
{
5858
std::map<std::string, size_t> stepIndices;
5959
size_t i = 0;

test/yulPhaser/TestHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ size_t countDifferences(Chromosome const& _chromosome1, Chromosome const& _chrom
105105
/// Assigns indices from 0 to N to all optimisation steps available in the OptimiserSuite.
106106
/// This is a convenience helper to make it easier to test their distribution with tools made for
107107
/// integers.
108-
std::map<std::string, size_t> enumerateOptmisationSteps();
108+
std::map<std::string, size_t> enumerateOptimisationSteps();
109109

110110
// STRING UTILITIES
111111

test/yulPhaser/TestHelpersTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ BOOST_AUTO_TEST_CASE(countDifferences_should_count_missing_characters_as_differe
9999
BOOST_AUTO_TEST_CASE(enumerateOptimisationSteps_should_assing_indices_to_all_available_optimisation_steps)
100100
{
101101
std::map<std::string, char> stepsAndAbbreviations = OptimiserSuite::stepNameToAbbreviationMap();
102-
std::map<std::string, size_t> stepsAndIndices = enumerateOptmisationSteps();
102+
std::map<std::string, size_t> stepsAndIndices = enumerateOptimisationSteps();
103103
BOOST_TEST(stepsAndIndices.size() == stepsAndAbbreviations.size());
104104

105105
std::set<std::string> stepsSoFar;

0 commit comments

Comments
 (0)