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

Tests for Ah Utils. More...

#include <gtest/gtest.h>
#include "../ahUtils.H"
#include <vector>
#include <fstream>
#include <cstdio>
Include dependency graph for ah-utils.cc:

Go to the source code of this file.

Classes

struct  MyTestStruct
 
struct  MockContainer
 
struct  MockContainer::Iterator
 

Functions

 TEST (AhUtilsTest, EvenOdd)
 
 TEST (AhUtilsTest, NibbleConversion)
 
 TEST (AhUtilsTest, PowerOf2)
 
 TEST (AhUtilsTest, Median)
 
 TEST (AhUtilsTest, Interpolation)
 
 TEST (AhUtilsTest, AreNear)
 
 TEST (AhUtilsTest, Indices)
 
 TEST (AhUtilsTest, Demangle)
 
 TEST (AhUtilsTest, ExistsFile)
 
 TEST (AhUtilsTest, FloatUtils)
 
 TEST (AhUtilsTest, ErrorMsg)
 
 TEST (AhUtilsTest, Rvector)
 
int main (int argc, char **argv)
 

Detailed Description

Tests for Ah Utils.

Definition in file ah-utils.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 232 of file ah-utils.cc.

◆ TEST() [1/12]

TEST ( AhUtilsTest  ,
AreNear   
)

Definition at line 121 of file ah-utils.cc.

References Aleph::are_near().

◆ TEST() [2/12]

TEST ( AhUtilsTest  ,
Demangle   
)

Definition at line 150 of file ah-utils.cc.

References CLASSNAME_TO_STRING, and Aleph::demangle().

◆ TEST() [3/12]

TEST ( AhUtilsTest  ,
ErrorMsg   
)

Definition at line 190 of file ah-utils.cc.

References Aleph::error_msg().

◆ TEST() [4/12]

TEST ( AhUtilsTest  ,
EvenOdd   
)

Definition at line 45 of file ah-utils.cc.

References Aleph::is_even(), and Aleph::is_odd().

◆ TEST() [5/12]

TEST ( AhUtilsTest  ,
ExistsFile   
)

Definition at line 161 of file ah-utils.cc.

References Aleph::exists_file().

◆ TEST() [6/12]

TEST ( AhUtilsTest  ,
FloatUtils   
)

Definition at line 173 of file ah-utils.cc.

References Aleph::is_normal_number(), Aleph::next_value(), and Aleph::prev_value().

◆ TEST() [7/12]

TEST ( AhUtilsTest  ,
Indices   
)

Definition at line 142 of file ah-utils.cc.

References Aleph::l_index(), and Aleph::u_index().

◆ TEST() [8/12]

TEST ( AhUtilsTest  ,
Interpolation   
)

◆ TEST() [9/12]

TEST ( AhUtilsTest  ,
Median   
)

Definition at line 95 of file ah-utils.cc.

References cmp(), and Aleph::median().

◆ TEST() [10/12]

TEST ( AhUtilsTest  ,
NibbleConversion   
)

Definition at line 59 of file ah-utils.cc.

References Aleph::char_to_nibble(), and Aleph::nibble_to_char().

◆ TEST() [11/12]

TEST ( AhUtilsTest  ,
PowerOf2   
)

Definition at line 77 of file ah-utils.cc.

References Aleph::is_power_of_2(), and Aleph::next_power_of_2().

◆ TEST() [12/12]

TEST ( AhUtilsTest  ,
Rvector   
)

Definition at line 219 of file ah-utils.cc.

References Aleph::Rvector().