remove tests for require by string

This commit is contained in:
Vighnesh 2023-12-01 20:50:35 -08:00
parent c592f50e20
commit c932b8e03f

View File

@ -50,8 +50,6 @@ public:
std::string luauDirAbs; std::string luauDirAbs;
std::optional<std::string> cwd = getCurrentWorkingDirectory(); std::optional<std::string> cwd = getCurrentWorkingDirectory();
if (cwd)
printf("%s\n", (*cwd).c_str());
REQUIRE_MESSAGE(cwd, "Error getting Luau path"); REQUIRE_MESSAGE(cwd, "Error getting Luau path");
std::replace((*cwd).begin(), (*cwd).end(), '\\', '/'); std::replace((*cwd).begin(), (*cwd).end(), '\\', '/');
luauDirAbs = *cwd; luauDirAbs = *cwd;
@ -211,6 +209,7 @@ TEST_CASE("PathNormalization")
} }
} }
#if 0
TEST_CASE_FIXTURE(ReplWithPathFixture, "RequireSimpleRelativePath") TEST_CASE_FIXTURE(ReplWithPathFixture, "RequireSimpleRelativePath")
{ {
@ -386,9 +385,10 @@ TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithAlias")
TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithParentAlias") TEST_CASE_FIXTURE(ReplWithPathFixture, "RequirePathWithParentAlias")
{ {
ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true}; ScopedFastFlag sff{FFlag::LuauUpdatedRequireByStringSemantics, true};
std::string path = getLuauDirectory(PathType::Relative) + "/tests/require/with_config/src/parent_alias_requirer.luau"; std::string path = getLuauDirectory(PathType::Relative) + "/tests/require/with_config/src/parent_alias_requirer";
runProtectedRequire(path); runProtectedRequire(path);
assertOutputContainsAll({"true", "result from other_dependency"}); assertOutputContainsAll({"true", "result from other_dependency"});
} }
#end
TEST_SUITE_END(); TEST_SUITE_END();