|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Unit tests for Gen_Sparse_Table, Sparse_Table and Max_Sparse_Table. More...
#include <gtest/gtest.h>#include <tpl_sparse_table.H>#include <algorithm>#include <cstddef>#include <numeric>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TEST (SparseTable, EmptyConstructionAndErrors) | |
| TEST (SparseTable, UniformValueConstruction) | |
| TEST (SparseTable, MinAndMaxAgainstBruteForce) | |
| TEST (SparseTable, ConstructorsFromAllContainers) | |
| TEST (SparseTable, CustomAssociativeIdempotentOperation) | |
| TEST (SparseTable, ValuesCopyMoveAndSwap) | |
| TEST (SparseTable, BoundsChecking) | |
Unit tests for Gen_Sparse_Table, Sparse_Table and Max_Sparse_Table.
Definition in file tpl_sparse_table_test.cc.
| TEST | ( | SparseTable | , |
| BoundsChecking | |||
| ) |
Definition at line 178 of file tpl_sparse_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Gen_Sparse_Table< T, Op >::get(), and Aleph::Gen_Sparse_Table< T, Op >::query().
| TEST | ( | SparseTable | , |
| ConstructorsFromAllContainers | |||
| ) |
Definition at line 114 of file tpl_sparse_table_test.cc.
References Aleph::Array< T >::append(), Aleph::DynList< T >::append(), StlAlephIterator< SetName >::begin(), Aleph::divide_and_conquer_partition_dp(), l, r, and Aleph::HTList::size().
| TEST | ( | SparseTable | , |
| CustomAssociativeIdempotentOperation | |||
| ) |
Definition at line 143 of file tpl_sparse_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), l, r, and Aleph::HTList::size().
| TEST | ( | SparseTable | , |
| EmptyConstructionAndErrors | |||
| ) |
Definition at line 71 of file tpl_sparse_table_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | SparseTable | , |
| MinAndMaxAgainstBruteForce | |||
| ) |
Definition at line 96 of file tpl_sparse_table_test.cc.
References StlAlephIterator< SetName >::begin(), Aleph::divide_and_conquer_partition_dp(), l, r, and Aleph::HTList::size().
| TEST | ( | SparseTable | , |
| UniformValueConstruction | |||
| ) |
| TEST | ( | SparseTable | , |
| ValuesCopyMoveAndSwap | |||
| ) |
Definition at line 153 of file tpl_sparse_table_test.cc.
References Aleph::copy(), Aleph::divide_and_conquer_partition_dp(), Aleph::Gen_Sparse_Table< T, Op >::swap(), and Aleph::Gen_Sparse_Table< T, Op >::values().