2015-06-19 15:54:18 -04:00
|
|
|
#include "catch.hpp"
|
2015-06-18 13:34:54 -04:00
|
|
|
#include "../src/base/settings/Config.h"
|
|
|
|
|
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
|
|
|
}
|