14 lines
276 B
C++
14 lines
276 B
C++
#include "catch.hpp"
|
|
#include "../src/base/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());
|
|
}
|
|
}
|