Implement a simple config file parser

This commit is contained in:
Viktor Soukup 2025-05-17 20:16:59 +02:00
parent 7744ac69f4
commit a04dd647f6
20 changed files with 601 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#include <catch2/catch_test_macros.hpp>
#include <Garbage/SimpleConf.hpp>
TEST_CASE("Config files with no key value pairs")
{
SECTION("Empty file")
{
std::filesystem::path path("TestConfigs/Empty.conf");
REQUIRE_NOTHROW(Garbage::SimpleConf(path));
}
SECTION("File with comments")
{
std::filesystem::path path("TestConfigs/CommentsOnly.conf");
REQUIRE_NOTHROW(Garbage::SimpleConf(path));
}
}