parent
b8bb49df2c
commit
947ccbe180
@ -0,0 +1,18 @@ |
|||||||
|
#include <catch2/catch_test_macros.hpp> |
||||||
|
#include "config.hpp" |
||||||
|
#include <iostream> |
||||||
|
|
||||||
|
TEST_CASE("confirm basic config loader ops", "[config]") { |
||||||
|
Config config("assets/devices.json"); |
||||||
|
auto data_list = config.json(); |
||||||
|
|
||||||
|
|
||||||
|
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")); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue