Skip to content

Commit

Permalink
Autoformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleMichetti committed Mar 10, 2024
1 parent ac76959 commit 9af686a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/unit-tests/ui_Movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,30 @@ bool MovingUp(int numberOfSteps) {
utils::Coordinate updated_future_coordinates = my_movement.getFutureCoordinate();
uint8_t updated_future_direction = my_movement.getFutureDirection();

std::cout<<"updated_coordinates = "<<updated_coordinates.x<<","<<updated_coordinates.y<<std::endl;
std::cout<<"updated_future_coordinates = "<<updated_future_coordinates.x<<","<<updated_future_coordinates.y<<std::endl;
std::cout<<"updated_direction = "<<updated_direction<<std::endl;
std::cout<<"updated_future_direction = "<<updated_future_direction<<std::endl;
std::cout << "updated_coordinates = " << updated_coordinates.x << "," << updated_coordinates.y << std::endl;
std::cout << "updated_future_coordinates = " << updated_future_coordinates.x << "," << updated_future_coordinates.y << std::endl;
std::cout << "updated_direction = " << updated_direction << std::endl;
std::cout << "updated_future_direction = " << updated_future_direction << std::endl;

bool result_x = false;
if (updated_coordinates.x == updated_future_coordinates.x) {
result_x == true;
}
std::cout<<result_x<<std::endl;
std::cout << result_x << std::endl;
bool result_y = false;
if ((updated_coordinates.y + 1) == updated_future_coordinates.y) {
result_y == true;
}
std::cout<<result_y<<std::endl;
std::cout << result_y << std::endl;
bool result_direction = false;
if (!(updated_future_direction ^ utils::Direction::up) & 0b11111111) {
result_direction == true;
}
std::cout<<result_direction<<std::endl;
std::cout << result_direction << std::endl;

resetState();

return result_x & result_y & result_direction;

}

namespace {
Expand Down

0 comments on commit 9af686a

Please sign in to comment.