Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_sparse_table_test.cc File Reference

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>
Include dependency graph for tpl_sparse_table_test.cc:

Go to the source code of this file.

Concepts

concept  @1036::buildable
 

Functions

 TEST (SparseTable, EmptyConstructionAndErrors)
 
 TEST (SparseTable, UniformValueConstruction)
 
 TEST (SparseTable, MinAndMaxAgainstBruteForce)
 
 TEST (SparseTable, ConstructorsFromAllContainers)
 
 TEST (SparseTable, CustomAssociativeIdempotentOperation)
 
 TEST (SparseTable, ClassTypePlusStillAccepted)
 
 TEST (SparseTable, ValuesCopyMoveAndSwap)
 
 TEST (SparseTable, BoundsChecking)
 

Variables

constexpr auto min_lambda = [](const int a, const int b) { return std::min(a, b); }
 

Detailed Description

Unit tests for Gen_Sparse_Table, Sparse_Table and Max_Sparse_Table.

Definition in file tpl_sparse_table_test.cc.

Function Documentation

◆ TEST() [1/8]

◆ TEST() [2/8]

TEST ( SparseTable  ,
ClassTypePlusStillAccepted   
)

◆ TEST() [3/8]

◆ TEST() [4/8]

TEST ( SparseTable  ,
CustomAssociativeIdempotentOperation   
)

◆ TEST() [5/8]

TEST ( SparseTable  ,
EmptyConstructionAndErrors   
)

◆ TEST() [6/8]

TEST ( SparseTable  ,
MinAndMaxAgainstBruteForce   
)

◆ TEST() [7/8]

◆ TEST() [8/8]

Variable Documentation

◆ min_lambda

constexpr auto min_lambda = [](const int a, const int b) { return std::min(a, b); }
constexpr

Definition at line 103 of file tpl_sparse_table_test.cc.