Skip to content

Commit

Permalink
tests repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Aug 31, 2024
1 parent cf317ec commit 6b33638
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
12 changes: 12 additions & 0 deletions source/EngineTests/MuscleTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ TEST_F(MuscleTests, doNothing)

TEST_F(MuscleTests, moveForward)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells(
{CellDescription()
Expand Down Expand Up @@ -102,6 +106,10 @@ TEST_F(MuscleTests, moveForward)

TEST_F(MuscleTests, moveBackward)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells(
{CellDescription()
Expand Down Expand Up @@ -137,6 +145,10 @@ TEST_F(MuscleTests, moveBackward)

TEST_F(MuscleTests, multipleMovementDirections)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells({
CellDescription()
Expand Down
16 changes: 16 additions & 0 deletions source/EngineTests/SensorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ TEST_F(SensorTests, scanNeighborhood_foundAtFront)

TEST_F(SensorTests, scanNeighborhood_foundAtRightHandSide)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells(
{CellDescription()
Expand Down Expand Up @@ -220,6 +224,10 @@ TEST_F(SensorTests, scanNeighborhood_foundAtRightHandSide)

TEST_F(SensorTests, scanNeighborhood_foundAtLeftHandSide)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells(
{CellDescription()
Expand Down Expand Up @@ -256,6 +264,10 @@ TEST_F(SensorTests, scanNeighborhood_foundAtLeftHandSide)

TEST_F(SensorTests, scanNeighborhood_foundAtBack)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells(
{CellDescription()
Expand Down Expand Up @@ -292,6 +304,10 @@ TEST_F(SensorTests, scanNeighborhood_foundAtBack)

TEST_F(SensorTests, scanNeighborhood_twoMasses)
{
_parameters.features.legacyModes = true;
_parameters.legacyCellFunctionMuscleMovementModeActivated = true;
_simController->setSimulationParameters(_parameters);

DataDescription data;
data.addCells(
{CellDescription()
Expand Down
3 changes: 2 additions & 1 deletion source/Gui/SimulationParametersWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ void _SimulationParametersWindow::processBase()
.infinity(true)
.format("%.0f")
.defaultValue(&origParameters.baseValues.cellMaxBindingEnergy)
.tooltip(std::string("Maximum energy of a cell at which it does not disintegrate.")),
.tooltip(std::string("Maximum energy of a cell at which it can contain bonds to adjacent cells. If the energy of a cell exceeds this "
"value, all bonds will be destroyed.")),
&parameters.baseValues.cellMaxBindingEnergy);
AlienImGui::EndTreeNode();
}
Expand Down

0 comments on commit 6b33638

Please sign in to comment.