Skip to content

Commit

Permalink
Tests Binary Heap Datastructure (#22)
Browse files Browse the repository at this point in the history
* Add tests for the binary heap to the test framework

Changes to be committed:
	new file:   tests/DataStructures/Container/TestBinaryHeap.cpp
	new file:   tests/DataStructures/Container/TestBinaryHeap.hpp

* Enable the binary heap test in the test framework
* Remove a namespace bug

Changes to be committed:
	modified:   include/DataStructures/Container/Queues/BinaryHeap.hpp
  • Loading branch information
franziska-wegner committed Dec 8, 2023
1 parent 63a79b1 commit b51d7b5
Show file tree
Hide file tree
Showing 4 changed files with 1,216 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/DataStructures/Container/Queues/BinaryHeap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,6 @@ class BinaryHeapLoopDifferentiation<HeapType const, ExecutionPolicy::parallel> {

#else // OPENMP_AVAILABLE

namespace internal {
template<typename HeapType>
class BinaryHeapLoopDifferentiation<HeapType, ExecutionPolicy::parallel>
: public BinaryHeapLoopDifferentiation<HeapType, ExecutionPolicy::sequential> {
Expand Down
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ add_test(NAME TestBound COMMAND TestBound)
# target_link_libraries(TestStdQueue EGOA gtest gtest_main gmock_main)
# add_test(NAME TestStdQueue COMMAND TestStdQueue)

# add_executable(TestBinaryHeap DataStructures/Container/TestBinaryHeap.cpp)
# target_link_libraries(TestBinaryHeap EGOA gtest gtest_main gmock_main)
# add_test(NAME TestBinaryHeap COMMAND TestBinaryHeap)
add_executable(TestBinaryHeap DataStructures/Container/TestBinaryHeap.cpp)
target_link_libraries(TestBinaryHeap EGOA gtest gtest_main gmock_main)
add_test(NAME TestBinaryHeap COMMAND TestBinaryHeap)

# add_executable(TestMappingBinaryHeap DataStructures/Container/TestMappingBinaryHeap.cpp)
# target_link_libraries(TestMappingBinaryHeap EGOA gtest gtest_main gmock_main)
Expand Down
Loading

0 comments on commit b51d7b5

Please sign in to comment.