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

Tests for LIS.H. More...

#include <gtest/gtest.h>
#include <algorithm>
#include <cstdint>
#include <random>
#include <LIS.H>
Include dependency graph for lis_test.cc:

Go to the source code of this file.

Functions

 TEST (LIS, EmptySequence)
 
 TEST (LIS, SingleElement)
 
 TEST (LIS, ClassicExample)
 
 TEST (LIS, AllEqual)
 
 TEST (LIS, AlreadySorted)
 
 TEST (LIS, ReverseSorted)
 
 TEST (LIS, LengthOnly)
 
 TEST (LIS, NonDecreasing)
 
 TEST (LIS, NonDecreasingAllEqual)
 
 TEST (LIS, CustomComparator)
 
 TEST (LIS, NonIncreasingWithComparator)
 
 TEST (LIS, StressVsBruteForce)
 
 TEST (LIS, NonDecreasingStressVsQuadraticDP)
 

Detailed Description

Tests for LIS.H.

Definition in file lis_test.cc.

Function Documentation

◆ TEST() [1/13]

TEST ( LIS  ,
AllEqual   
)

◆ TEST() [2/13]

TEST ( LIS  ,
AlreadySorted   
)

◆ TEST() [3/13]

TEST ( LIS  ,
ClassicExample   
)

◆ TEST() [4/13]

TEST ( LIS  ,
CustomComparator   
)

◆ TEST() [5/13]

TEST ( LIS  ,
EmptySequence   
)

◆ TEST() [6/13]

TEST ( LIS  ,
LengthOnly   
)

Definition at line 155 of file lis_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::lis_length().

◆ TEST() [7/13]

TEST ( LIS  ,
NonDecreasing   
)

◆ TEST() [8/13]

TEST ( LIS  ,
NonDecreasingAllEqual   
)

◆ TEST() [9/13]

TEST ( LIS  ,
NonDecreasingStressVsQuadraticDP   
)

◆ TEST() [10/13]

TEST ( LIS  ,
NonIncreasingWithComparator   
)

◆ TEST() [11/13]

TEST ( LIS  ,
ReverseSorted   
)

◆ TEST() [12/13]

TEST ( LIS  ,
SingleElement   
)

◆ TEST() [13/13]