|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Arrayheap Algos. More...
#include <algorithm>#include <ranges>#include <vector>#include <gtest/gtest.h>#include <tpl_arrayHeap.H>Go to the source code of this file.
Functions | |
| static bool | is_min_heap (const std::vector< int > &v) |
| TEST (ArrayHeapAlgos, ValidHeapDetectsHeapAndNonHeap) | |
| TEST (ArrayHeapAlgos, SiftUpRestoresHeapAfterInsertAtEnd) | |
| TEST (ArrayHeapAlgos, SiftDownRestoresHeapAfterRootViolation) | |
| TEST (ArrayHeapAlgos, SiftDownUpRestoresHeapAfterInternalUpdate) | |
| TEST (ArrayHeapAlgos, HeapsortMatchesStdSort) | |
| TEST (ArrayHeapAlgos, FasterHeapsortMatchesStdSort) | |
Tests for Arrayheap Algos.
Definition in file arrayheap_algos.cc.
|
static |
Definition at line 49 of file arrayheap_algos.cc.
References cmp(), Aleph::maps(), Aleph::HTList::size(), and Aleph::valid_heap().
Referenced by TEST().
| TEST | ( | ArrayHeapAlgos | , |
| FasterHeapsortMatchesStdSort | |||
| ) |
Definition at line 131 of file arrayheap_algos.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::faster_heapsort(), and Aleph::maps().
| TEST | ( | ArrayHeapAlgos | , |
| HeapsortMatchesStdSort | |||
| ) |
Definition at line 121 of file arrayheap_algos.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::heapsort(), and Aleph::maps().
| TEST | ( | ArrayHeapAlgos | , |
| SiftDownRestoresHeapAfterRootViolation | |||
| ) |
Definition at line 90 of file arrayheap_algos.cc.
References cmp(), Aleph::maps(), Aleph::sift_down(), and Aleph::valid_heap().
| TEST | ( | ArrayHeapAlgos | , |
| SiftDownUpRestoresHeapAfterInternalUpdate | |||
| ) |
Definition at line 102 of file arrayheap_algos.cc.
References cmp(), Aleph::maps(), Aleph::sift_down_up(), and Aleph::valid_heap().
| TEST | ( | ArrayHeapAlgos | , |
| SiftUpRestoresHeapAfterInsertAtEnd | |||
| ) |
Definition at line 75 of file arrayheap_algos.cc.
References cmp(), Aleph::maps(), Aleph::sift_up(), and Aleph::valid_heap().
| TEST | ( | ArrayHeapAlgos | , |
| ValidHeapDetectsHeapAndNonHeap | |||
| ) |
Definition at line 62 of file arrayheap_algos.cc.
References is_min_heap(), and Aleph::maps().