From c95a3d9de19dfeea579541ee34bf2446ae4857ea Mon Sep 17 00:00:00 2001 From: ohyzha Date: Tue, 31 Dec 2024 10:14:11 +0200 Subject: [PATCH] add test for reading file from given string literal --- tests/Base/UtilsTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Base/UtilsTest.cpp b/tests/Base/UtilsTest.cpp index 46078e4..69d93a1 100644 --- a/tests/Base/UtilsTest.cpp +++ b/tests/Base/UtilsTest.cpp @@ -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()); } \ No newline at end of file