Implement a simple config file parser
This commit is contained in:
parent
405b68b824
commit
167b8bee8d
20 changed files with 601 additions and 0 deletions
17
Tests/SimpleConf/EmptyConfigs.cpp
Normal file
17
Tests/SimpleConf/EmptyConfigs.cpp
Normal 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));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue