You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
441 B
18 lines
441 B
#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"));
|
|
}
|
|
}
|
|
}
|
|
|