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

Tests for Ah Dry. More...

#include <gtest/gtest.h>
#include <vector>
#include <ah-zip.H>
#include <ahFunctional.H>
#include <ah-string-utils.H>
#include <ahSort.H>
#include <htlist.H>
#include <tpl_arrayHeap.H>
#include <tpl_dynArrayHeap.H>
#include <tpl_dynBinHeap.H>
#include <tpl_dynDlist.H>
#include <tpl_dynSetTree.H>
#include <tpl_hash.H>
#include <tpl_dynSetHash.H>
#include <tpl_dynArray.H>
#include <tpl_arrayQueue.H>
#include <tpl_dynListStack.H>
#include <tpl_dynarray_set.H>
#include <tpl_random_queue.H>
Include dependency graph for ah-dry.cc:

Go to the source code of this file.

Classes

struct  Container< Ctype >
 
struct  CtorContainer< C >
 

Typedefs

typedef Types< DynList< int >, DynDlist< int >, DynArray< int >, HashSet< int, ODhashTable >, HashSet< int, OLhashTable >, DynHashTable< int, LhashTable >, DynHashTable< int, LinearHashTable >, DynSetHash< int >, DynSetTree< int, Treap >, DynSetTree< int, Treap_Rk >, DynSetTree< int, Rand_Tree >, DynSetTree< int, Splay_Tree >, DynSetTree< int, Avl_Tree >, DynSetTree< int, Rb_Tree >, Array< int >, ArrayQueue< int >, ArrayStack< int >, DynListQueue< int >, DynListStack< int >, DynArrayHeap< int >, DynBinHeap< int >, FixedQueue< int >, FixedStack< int > > Ctypes
 

Functions

 TYPED_TEST_SUITE_P (Container)
 
 TYPED_TEST_P (Container, traverse)
 
 TYPED_TEST_P (Container, for_each)
 
 TYPED_TEST_P (Container, find_ptr)
 
 TYPED_TEST_P (Container, find_index_nth)
 
 TYPED_TEST_P (Container, find_item)
 
 TYPED_TEST_P (Container, iterator_operations)
 
 TYPED_TEST_P (Container, nappend)
 
 TYPED_TEST_P (Container, ninsert)
 
 TYPED_TEST_P (Container, all)
 
 TYPED_TEST_P (Container, exists)
 
 TYPED_TEST_P (Container, maps)
 
 TYPED_TEST_P (Container, foldl)
 
 TYPED_TEST_P (Container, filter_ops)
 
 REGISTER_TYPED_TEST_SUITE_P (Container, traverse, for_each, find_ptr, find_index_nth, find_item, iterator_operations, nappend, ninsert, all, exists, maps, foldl, filter_ops)
 
 INSTANTIATE_TYPED_TEST_SUITE_P (traverses, Container, Ctypes)
 
 TYPED_TEST_SUITE_P (CtorContainer)
 
 TYPED_TEST_P (CtorContainer, ctor)
 
 REGISTER_TYPED_TEST_SUITE_P (CtorContainer, ctor)
 
 INSTANTIATE_TYPED_TEST_SUITE_P (Ctors, CtorContainer, Ctypes)
 

Detailed Description

Tests for Ah Dry.

Definition in file ah-dry.cc.

Typedef Documentation

◆ Ctypes

Definition at line 334 of file ah-dry.cc.

Function Documentation

◆ INSTANTIATE_TYPED_TEST_SUITE_P() [1/2]

INSTANTIATE_TYPED_TEST_SUITE_P ( Ctors  ,
CtorContainer  ,
Ctypes   
)

◆ INSTANTIATE_TYPED_TEST_SUITE_P() [2/2]

INSTANTIATE_TYPED_TEST_SUITE_P ( traverses  ,
Container  ,
Ctypes   
)

◆ REGISTER_TYPED_TEST_SUITE_P() [1/2]

REGISTER_TYPED_TEST_SUITE_P ( Container  ,
traverse  ,
for_each  ,
find_ptr  ,
find_index_nth  ,
find_item  ,
iterator_operations  ,
nappend  ,
ninsert  ,
all  ,
exists  ,
maps  ,
foldl  ,
filter_ops   
)

◆ REGISTER_TYPED_TEST_SUITE_P() [2/2]

REGISTER_TYPED_TEST_SUITE_P ( CtorContainer  ,
ctor   
)

◆ TYPED_TEST_P() [1/14]

TYPED_TEST_P ( Container  ,
all   
)

Definition at line 240 of file ah-dry.cc.

References Aleph::maps(), N, Aleph::sort(), tbl, and Aleph::to_dynlist().

◆ TYPED_TEST_P() [2/14]

TYPED_TEST_P ( Container  ,
exists   
)

Definition at line 255 of file ah-dry.cc.

References FunctionalMethods< Container, T >::all(), l, Aleph::maps(), and N.

◆ TYPED_TEST_P() [3/14]

◆ TYPED_TEST_P() [4/14]

TYPED_TEST_P ( Container  ,
find_index_nth   
)

Definition at line 119 of file ah-dry.cc.

References Aleph::maps(), and N.

◆ TYPED_TEST_P() [5/14]

TYPED_TEST_P ( Container  ,
find_item   
)

Definition at line 135 of file ah-dry.cc.

References Aleph::maps(), and N.

◆ TYPED_TEST_P() [6/14]

TYPED_TEST_P ( Container  ,
find_ptr   
)

Definition at line 104 of file ah-dry.cc.

References Aleph::maps(), and N.

◆ TYPED_TEST_P() [7/14]

TYPED_TEST_P ( Container  ,
foldl   
)

Definition at line 279 of file ah-dry.cc.

References Aleph::maps(), N, and Aleph::sum().

◆ TYPED_TEST_P() [8/14]

TYPED_TEST_P ( Container  ,
for_each   
)

◆ TYPED_TEST_P() [9/14]

◆ TYPED_TEST_P() [10/14]

TYPED_TEST_P ( Container  ,
maps   
)

◆ TYPED_TEST_P() [11/14]

TYPED_TEST_P ( Container  ,
nappend   
)

Definition at line 186 of file ah-dry.cc.

References Aleph::maps(), and N.

◆ TYPED_TEST_P() [12/14]

TYPED_TEST_P ( Container  ,
ninsert   
)

Definition at line 213 of file ah-dry.cc.

References Aleph::maps(), and N.

◆ TYPED_TEST_P() [13/14]

TYPED_TEST_P ( Container  ,
traverse   
)

Definition at line 82 of file ah-dry.cc.

References l, Aleph::maps(), N, Aleph::sort(), and Aleph::zip_all().

◆ TYPED_TEST_P() [14/14]

TYPED_TEST_P ( CtorContainer  ,
ctor   
)

Definition at line 361 of file ah-dry.cc.

References Aleph::maps(), N, Aleph::sort(), and Aleph::to_dynlist().

◆ TYPED_TEST_SUITE_P() [1/2]

TYPED_TEST_SUITE_P ( Container  )

◆ TYPED_TEST_SUITE_P() [2/2]

TYPED_TEST_SUITE_P ( CtorContainer  )