stuff-from-scratch/test/core/TestTomlReader.cpp
2022-12-01 10:52:48 +00:00

19 lines
489 B
C++

#include "TomlReader.h"
#include "TestFramework.h"
#include "TestUtils.h"
TEST_CASE(TestTomlReader, "core")
{
auto reader = TomlReader();
reader.read(TestUtils::getTestDataDir() / "sample_toml.toml");
auto themes_table = reader.getContent()->getTable("themes");
REQUIRE(themes_table);
for (const auto& items : themes_table->getKeyValuePairs())
{
//std::cout << "Got entry with key: " << items.first << " and val " << items.second << std::endl;
}
}