Skip to content

Commit

Permalink
Move one of variables to narrow its scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Sep 24, 2024
1 parent 9a60adf commit 7aa5cc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/MapTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,13 @@ std::string getTestMapForShifting()
}
} // namespace

const int tileCountForShifting{3};

TEST_CASE("shift", "[map]")
{
std::stringstream stream(getTestMapForShifting());
static const int tileSize{Config::getInstance().getTileSize()};
static const int twoTiles{tileSize * 2};

const int tileCountForShifting{3};
Map map(tileCountForShifting);
map.loadMap(stream);

Expand Down

0 comments on commit 7aa5cc6

Please sign in to comment.