diff --git a/tests/common_tests/chowdsp_data_structures_test/AbstractTreeTest.cpp b/tests/common_tests/chowdsp_data_structures_test/AbstractTreeTest.cpp index 8bbca532..9ffc1dc3 100644 --- a/tests/common_tests/chowdsp_data_structures_test/AbstractTreeTest.cpp +++ b/tests/common_tests/chowdsp_data_structures_test/AbstractTreeTest.cpp @@ -43,31 +43,31 @@ TEST_CASE ("Abstract Tree Test", "[common][data-structures]") REQUIRE (tree.size() == 0); } - // SECTION ("Insertion") - // { - // tree.insertElement ("almonds"); - // REQUIRE (tree.size() == 5); - // - // { - // const auto* a_node = tree.getRootNode().first_child; - // REQUIRE (a_node->tag == "a"); - // REQUIRE (a_node->first_child->leaf == "alfalfa"); - // REQUIRE (a_node->first_child->next_sibling->leaf == "almonds"); - // REQUIRE (a_node->first_child->next_sibling->next_sibling->leaf == "apples"); - // } - // - // tree.insertElement ("acai"); - // REQUIRE (tree.size() == 6); - // - // { - // const auto* a_node = tree.getRootNode().first_child; - // REQUIRE (a_node->tag == "a"); - // REQUIRE (a_node->first_child->leaf == "acai"); - // REQUIRE (a_node->first_child->next_sibling->leaf == "alfalfa"); - // REQUIRE (a_node->first_child->next_sibling->next_sibling->leaf == "almonds"); - // REQUIRE (a_node->first_child->next_sibling->next_sibling->next_sibling->leaf == "apples"); - // } - // } + SECTION ("Insertion") + { + tree.insertElement ("almonds"); + REQUIRE (tree.size() == 5); + + // { + // const auto* a_node = tree.getRootNode().first_child; + // REQUIRE (a_node->tag == "a"); + // REQUIRE (a_node->first_child->leaf == "alfalfa"); + // REQUIRE (a_node->first_child->next_sibling->leaf == "almonds"); + // REQUIRE (a_node->first_child->next_sibling->next_sibling->leaf == "apples"); + // } + // + // tree.insertElement ("acai"); + // REQUIRE (tree.size() == 6); + // + // { + // const auto* a_node = tree.getRootNode().first_child; + // REQUIRE (a_node->tag == "a"); + // REQUIRE (a_node->first_child->leaf == "acai"); + // REQUIRE (a_node->first_child->next_sibling->leaf == "alfalfa"); + // REQUIRE (a_node->first_child->next_sibling->next_sibling->leaf == "almonds"); + // REQUIRE (a_node->first_child->next_sibling->next_sibling->next_sibling->leaf == "apples"); + // } + } // SECTION ("Remove One") // { diff --git a/tests/common_tests/chowdsp_data_structures_test/EnumMapTest.cpp b/tests/common_tests/chowdsp_data_structures_test/EnumMapTest.cpp index 04f72bdc..3673e1f1 100644 --- a/tests/common_tests/chowdsp_data_structures_test/EnumMapTest.cpp +++ b/tests/common_tests/chowdsp_data_structures_test/EnumMapTest.cpp @@ -90,9 +90,9 @@ TEST_CASE ("Enum Map Test", "[common][data-structures]") ++iter; } - // iter = 0; - // for (auto [key, val] : map) - // val = (int) iter++; + iter = 0; + for (auto [key, val] : map) + val = static_cast (iter++); // REQUIRE (map[Food::Apple] == 0); // REQUIRE (map[Food::Green_Beans] == 1); } diff --git a/tests/common_tests/chowdsp_data_structures_test/STLArenaAllocatorTest.cpp b/tests/common_tests/chowdsp_data_structures_test/STLArenaAllocatorTest.cpp index a3163679..bda81e56 100644 --- a/tests/common_tests/chowdsp_data_structures_test/STLArenaAllocatorTest.cpp +++ b/tests/common_tests/chowdsp_data_structures_test/STLArenaAllocatorTest.cpp @@ -11,9 +11,9 @@ TEST_CASE ("STL Arena Allocator Test", "[common][data-structures]") using custom_vector = std::vector; custom_vector vec { { 1, 2, 3, 4 }, alloc }; - // REQUIRE (vec.size() == 4); - // REQUIRE (vec.front() == 1); - // REQUIRE (vec.back() == 4); + REQUIRE (vec.size() == 4); + REQUIRE (vec.front() == 1); + REQUIRE (vec.back() == 4); // vec.push_back (5); // REQUIRE (vec.size() == 5);