Tyro/tests/ConfigTest.cpp

14 lines
274 B
C++
Raw Normal View History

2015-07-07 10:01:17 -04:00
#include "tests/catch.hpp"
#include "src/settings/Config.h"
TEST_CASE ("Base config class load json")
{
TyroConfig *config = new TyroConfig();
SECTION("Create Base Config Class")
{
config->LoadJson("{\"foo\":\"bar\"}");
REQUIRE(config->GetRoot().isObject());
}
}