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