Clean up some tests.
This commit is contained in:
parent
b17ba8b3a7
commit
c102ebb6da
64 changed files with 615 additions and 541 deletions
|
@ -1,17 +1,12 @@
|
|||
#include "TomlReader.h"
|
||||
|
||||
#include "TestFramework.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include "TestUtils.h"
|
||||
|
||||
TEST_CASE(TestTomlReader, "core")
|
||||
{
|
||||
const auto data_loc = std::filesystem::path(__FILE__) / "../../data";
|
||||
const auto sample_toml_file = data_loc / "sample_toml.toml";
|
||||
|
||||
auto reader = TomlReader();
|
||||
reader.read(sample_toml_file);
|
||||
reader.read(TestUtils::getTestDataDir() / "sample_toml.toml");
|
||||
|
||||
auto themes_table = reader.getContent()->getTable("themes");
|
||||
|
||||
|
@ -19,6 +14,6 @@ TEST_CASE(TestTomlReader, "core")
|
|||
|
||||
for (const auto& items : themes_table->getKeyValuePairs())
|
||||
{
|
||||
std::cout << "Got entry with key: " << items.first << " and val " << items.second << std::endl;
|
||||
//std::cout << "Got entry with key: " << items.first << " and val " << items.second << std::endl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue