stuff-from-scratch/test/core/TestTomlReader.cpp
2023-01-23 11:06:30 +00:00

19 lines
495 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;
//}
}