#include #include "config.hpp" #include TEST_CASE("confirm basic config loader ops", "[config]") { Config config("assets/devices.json"); auto data_list = config.json(); auto the_keys = config.keys(); REQUIRE(the_keys.size() > 0); for(auto& [key, data] : data_list.items()) { auto wide1 = config.wstring(key, "name"); auto& comps = data["components"]; for(auto& comp_data : comps) { REQUIRE(comp_data.contains("_type")); } } }