Skip to content

Commit

Permalink
fixup string to path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Aug 23, 2023
1 parent 5eef6dc commit fbc85c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tests/api/internals/game/game_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ TEST_P(
TEST_P(GameTest, isValidPluginShouldResolveRelativePathsRelativeToDataPath) {
const Game game(GetParam(), dataPath.parent_path(), localPath);

game.IsValidPlugin("../" + dataPath.filename().u8string() + "/" + blankEsm);
const auto path = ".." / dataPath.filename() / blankEsm;

EXPECT_TRUE(game.IsValidPlugin(path));
}

TEST_P(GameTest, isValidPluginShouldUseAbsolutePathsAsGiven) {
Expand All @@ -159,7 +161,8 @@ TEST_P(GameTest, isValidPluginShouldUseAbsolutePathsAsGiven) {
ASSERT_TRUE(dataPath.is_absolute());

const auto path = dataPath / std::filesystem::u8path(blankEsm);
game.IsValidPlugin(path.u8string());

EXPECT_TRUE(game.IsValidPlugin(path));
}

TEST_P(
Expand Down

0 comments on commit fbc85c3

Please sign in to comment.