Implement a simple config file parser

This commit is contained in:
TennesseeTrash 2025-06-09 01:41:33 +02:00
parent 405b68b824
commit 167b8bee8d
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));
}
}