can CI handle this?

This commit is contained in:
Vighnesh 2023-12-01 20:37:13 -08:00
parent 79854143e4
commit c592f50e20

View file

@ -50,6 +50,8 @@ public:
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;
@ -209,6 +211,7 @@ TEST_CASE("PathNormalization")
}
}
TEST_CASE_FIXTURE(ReplWithPathFixture, "RequireSimpleRelativePath")
{
ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true};
@ -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"});
}