diff --git a/src/tests/api/internals/game/game_test.h b/src/tests/api/internals/game/game_test.h index 7266c8cf..a02ac8dd 100644 --- a/src/tests/api/internals/game/game_test.h +++ b/src/tests/api/internals/game/game_test.h @@ -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) { @@ -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(