First round of cleanup. dnd_loot.

This commit is contained in:
Zed A. Shaw 2025-06-25 14:28:35 -04:00
parent 689bb150c6
commit f668ff6b7a
9 changed files with 169 additions and 38 deletions

View file

@ -3,6 +3,7 @@
#include <iostream>
TEST_CASE("confirm basic config loader ops", "[config]") {
Config::set_base_dir("./");
Config config("assets/devices.json");
auto data_list = config.json();
auto the_keys = config.keys();
@ -17,4 +18,11 @@ TEST_CASE("confirm basic config loader ops", "[config]") {
REQUIRE(comp_data.contains("_type"));
}
}
Config indexed("tests/config_test.json");
auto& test_0 = indexed[0];
REQUIRE(test_0["test"] == 0);
auto& test_1 = indexed[1];
REQUIRE(test_1["test"] == 1);
}