Skip to content

Commit

Permalink
can CI handle this?
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Dec 2, 2023
1 parent 7985414 commit c592f50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/RequireByString.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class ReplWithPathFixture
std::string luauDirAbs;

std::optional<std::string> cwd = getCurrentWorkingDirectory();
if (cwd)
printf("%s\n", (*cwd).c_str());
REQUIRE_MESSAGE(cwd, "Error getting Luau path");
std::replace((*cwd).begin(), (*cwd).end(), '\\', '/');
luauDirAbs = *cwd;
Expand Down Expand Up @@ -209,6 +211,7 @@ TEST_CASE("PathNormalization")
}
}


TEST_CASE_FIXTURE(ReplWithPathFixture, "RequireSimpleRelativePath")
{
ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true};
Expand Down Expand Up @@ -383,7 +386,7 @@ TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithAlias")
TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithParentAlias")
{
ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true};
std::string path = getLuauDirectory(PathType::Relative) + "/tests/require/with_config/src/parent_alias_requirer";
std::string path = getLuauDirectory(PathType::Relative) + "/tests/require/with_config/src/parent_alias_requirer.luau";
runProtectedRequire(path);
assertOutputContainsAll({"true", "result from other_dependency"});
}
Expand Down

0 comments on commit c592f50

Please sign in to comment.