add test for reading file from given string literal

This commit is contained in:
ohyzha
2024-12-31 10:14:11 +02:00
parent 8d389db50c
commit c95a3d9de1

View File

@@ -259,4 +259,10 @@ TEST_CASE("Split with non-null-terminated strings", "[Utils]")
input = { ",,,|", 3 };
result = Utils::Split(input, ',');
REQUIRE(result.empty());
}
TEST_CASE("Read file from string literal", "[Utils]")
{
// all we need is to check if it compiles
REQUIRE(Utils::ReadFile("", true).Empty());
}