25 tree.insert_item(*catalog_empty_path);
27 expect_tree_items(
tree, {});
34 tree.insert_item(*catalog);
35 expect_tree_items(
tree, {
"item"});
39 tree.insert_item(*catalog);
40 expect_tree_items(
tree, {
"item",
"item/child"});
42 std::vector<AssetCatalogPath> expected_paths;
46 "item/child/grandchild/grandgrandchild");
47 tree.insert_item(*catalog);
49 "item",
"item/child",
"item/child/grandchild",
"item/child/grandchild/grandgrandchild"};
50 expect_tree_items(
tree, expected_paths);
53 tree.insert_item(*catalog);
54 expected_paths = {
"item",
56 "item/child/grandchild",
57 "item/child/grandchild/grandgrandchild",
59 expect_tree_items(
tree, expected_paths);
66 tree.insert_item(*catalog);
67 expect_tree_items(
tree, {
"item",
"item/child"});
74 tree.insert_item(*catalog);
75 expect_tree_items(
tree, {
"white space"});
82 tree.insert_item(*catalog);
83 expect_tree_items(
tree, {
"item",
"item/white space"});
90 tree.insert_item(*catalog_unicode_path);
91 expect_tree_items(
tree, {
"Ružena"});
94 tree.insert_item(*catalog_unicode_path);
95 expect_tree_items(
tree, {
"Ružena",
"Ružena/Ružena"});
130 const std::vector<AssetCatalogPath> no_catalogs{};
132 expect_tree_items(
tree, no_catalogs);
133 expect_tree_root_items(
tree, no_catalogs);
136 tree.insert_item(*catalog);
138 expect_tree_item_child_items(item, no_catalogs);
145 std::vector<AssetCatalogPath> expected_root_items{{
"character",
"path"}};
147 expect_tree_root_items(
tree, expected_root_items);
150 std::vector<std::vector<AssetCatalogPath>> expected_root_child_items = {
152 {
"character/Ellie",
"character/Ružena"},
158 expect_tree_item_child_items(item, expected_root_child_items[i]);