Address feedback form Emo in doscord

This commit is contained in:
Aaron Kimbrell
2025-10-04 23:02:28 -05:00
parent 1171d20333
commit b3b8362f53
4 changed files with 10 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ set(DCOMMONTEST_SOURCES
"TestLUString.cpp"
"TestLUWString.cpp"
"dCommonDependencies.cpp"
"lxfml_split_tests.cpp"
"LxfmlSplitTests.cpp"
)
add_subdirectory(dEnumsTests)

View File

@@ -21,7 +21,10 @@ TEST(LxfmlSplitTests, SplitUsesAllBricksAndNoDuplicates) {
// Read the sample test.lxfml included in tests. Resolve path relative to this source file.
std::filesystem::path srcDir = std::filesystem::path(__FILE__).parent_path();
std::filesystem::path filePath = srcDir / "test.lxfml";
std::string data = ReadFile(filePath.string());
std::ifstream in(filePath, std::ios::in | std::ios::binary);
std::ostringstream ss;
ss << in.rdbuf();
std::string data = ss.str();
ASSERT_FALSE(data.empty()) << "Failed to read " << filePath.string();