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

Tests for Ah Comb. More...

#include <gtest/gtest.h>
#include <ah-comb.H>
#include <ahFunctional.H>
#include <set>
#include <sstream>
Include dependency graph for ah-comb.cc:

Go to the source code of this file.

Functions

 TEST (AhComb, TransposeEmpty)
 
 TEST (AhComb, TransposeRectangular)
 
 TEST (AhComb, InPlaceTransposeDynArray)
 
 TEST (AhComb, TraversePermEnumeratesAll)
 
 TEST (AhComb, TraversePermEarlyStop)
 
 TEST (AhComb, BuildPerms)
 
 TEST (AhComb, BuildCombsDeduplicates)
 
 TEST (AhComb, FoldPermAccumulates)
 
 TEST (AhComb, TraversePermEmptyInputCallsOnce)
 
 TEST (AhComb, BuildPermsEmptyInputReturnsOneEmptyPermutation)
 
 TEST (AhComb, BuildCombsEmptyInputReturnsOneEmptyCombination)
 
 TEST (AhComb, TransposeWithZeroColumns)
 
 TEST (AhComb, NonRectangularTransposeDies)
 
 TEST (AhComb, PermCountBasic)
 
 TEST (AhComb, PermCountEmpty)
 
 TEST (AhComb, PermCountWithEmptyList)
 
 TEST (AhComb, PermCountSingleList)
 
 TEST (AhComb, ExistsPermFindsMatch)
 
 TEST (AhComb, ExistsPermNoMatch)
 
 TEST (AhComb, ExistsPermStopsEarly)
 
 TEST (AhComb, AllPermAllSatisfy)
 
 TEST (AhComb, AllPermSomeFail)
 
 TEST (AhComb, AllPermStopsEarly)
 
 TEST (AhComb, NonePermNoneSatisfy)
 
 TEST (AhComb, NonePermSomeSatisfy)
 
 TEST (AhComb, FilterPermBasic)
 
 TEST (AhComb, FilterPermEmpty)
 
 TEST (AhComb, FilterPermAll)
 
 TEST (AhComb, MapPermBasic)
 
 TEST (AhComb, MapPermToString)
 
 TEST (AhComb, ForEachPermBasic)
 
 TEST (AhComb, ForEachPermEmpty)
 
 TEST (AhComb, TraversePermThreeLists)
 
 TEST (AhComb, TraversePermSingleElement)
 
 TEST (AhComb, TransposeSingleRow)
 
 TEST (AhComb, TransposeSingleColumn)
 
 TEST (AhComb, InPlaceTransposeSingleRow)
 
 TEST (AhComb, TransposeSquare)
 
 TEST (AhComb, BuildCombsAllSame)
 
 TEST (AhComb, BuildCombsThreeLists)
 
 TEST (AhComb, FoldPermMultiplyFirstElements)
 
 TEST (AhComb, StressTestManyPermutations)
 
 TEST (AhComb, NodescardBuildPerms)
 
 TEST (AhComb, NodescardBuildCombs)
 
 TEST (AhComb, NodescardTranspose)
 
 TEST (AhComb, NodescardFoldPerm)
 
 TEST (AhComb, NodescardPermCount)
 
 TEST (AhComb, NodescardExistsPerm)
 
 TEST (AhComb, NodescardAllPerm)
 
 TEST (AhComb, NodescardNonePerm)
 
 TEST (AhComb, NodescardFilterPerm)
 
 TEST (AhComb, NodescardMapPerm)
 

Detailed Description

Tests for Ah Comb.

Definition in file ah-comb.cc.

Function Documentation

◆ TEST() [1/52]

TEST ( AhComb  ,
AllPermAllSatisfy   
)

◆ TEST() [2/52]

TEST ( AhComb  ,
AllPermSomeFail   
)

◆ TEST() [3/52]

TEST ( AhComb  ,
AllPermStopsEarly   
)

Definition at line 378 of file ah-comb.cc.

References Aleph::all_perm(), Aleph::DynList< T >::get_first(), l, and Aleph::maps().

◆ TEST() [4/52]

TEST ( AhComb  ,
BuildCombsAllSame   
)

◆ TEST() [5/52]

TEST ( AhComb  ,
BuildCombsDeduplicates   
)

◆ TEST() [6/52]

TEST ( AhComb  ,
BuildCombsEmptyInputReturnsOneEmptyCombination   
)

◆ TEST() [7/52]

TEST ( AhComb  ,
BuildCombsThreeLists   
)

Definition at line 646 of file ah-comb.cc.

References Aleph::build_combs(), l, Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [8/52]

TEST ( AhComb  ,
BuildPerms   
)

◆ TEST() [9/52]

TEST ( AhComb  ,
BuildPermsEmptyInputReturnsOneEmptyPermutation   
)

◆ TEST() [10/52]

TEST ( AhComb  ,
ExistsPermFindsMatch   
)

◆ TEST() [11/52]

TEST ( AhComb  ,
ExistsPermNoMatch   
)

Definition at line 317 of file ah-comb.cc.

References Aleph::exists_perm(), Aleph::DynList< T >::get_first(), l, and Aleph::maps().

◆ TEST() [12/52]

TEST ( AhComb  ,
ExistsPermStopsEarly   
)

◆ TEST() [13/52]

TEST ( AhComb  ,
FilterPermAll   
)

Definition at line 450 of file ah-comb.cc.

References Aleph::filter_perm(), l, Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [14/52]

TEST ( AhComb  ,
FilterPermBasic   
)

◆ TEST() [15/52]

TEST ( AhComb  ,
FilterPermEmpty   
)

Definition at line 436 of file ah-comb.cc.

References Aleph::filter_perm(), Aleph::HTList::is_empty(), l, and Aleph::maps().

◆ TEST() [16/52]

TEST ( AhComb  ,
FoldPermAccumulates   
)

Definition at line 196 of file ah-comb.cc.

References Aleph::DynList< T >::get_first(), l, Aleph::maps(), and Aleph::sum().

◆ TEST() [17/52]

TEST ( AhComb  ,
FoldPermMultiplyFirstElements   
)

Definition at line 660 of file ah-comb.cc.

References Aleph::DynList< T >::get_first(), l, Aleph::maps(), and Aleph::product().

◆ TEST() [18/52]

TEST ( AhComb  ,
ForEachPermBasic   
)

◆ TEST() [19/52]

TEST ( AhComb  ,
ForEachPermEmpty   
)

Definition at line 524 of file ah-comb.cc.

References Aleph::for_each_perm(), Aleph::HTList::is_empty(), l, and Aleph::maps().

◆ TEST() [20/52]

TEST ( AhComb  ,
InPlaceTransposeDynArray   
)

◆ TEST() [21/52]

TEST ( AhComb  ,
InPlaceTransposeSingleRow   
)

◆ TEST() [22/52]

TEST ( AhComb  ,
MapPermBasic   
)

◆ TEST() [23/52]

TEST ( AhComb  ,
MapPermToString   
)

◆ TEST() [24/52]

TEST ( AhComb  ,
NodescardAllPerm   
)

Definition at line 761 of file ah-comb.cc.

References Aleph::all(), Aleph::all_perm(), l, and Aleph::maps().

◆ TEST() [25/52]

TEST ( AhComb  ,
NodescardBuildCombs   
)

Definition at line 708 of file ah-comb.cc.

References Aleph::build_combs(), l, Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [26/52]

TEST ( AhComb  ,
NodescardBuildPerms   
)

Definition at line 698 of file ah-comb.cc.

References Aleph::build_perms(), l, Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [27/52]

TEST ( AhComb  ,
NodescardExistsPerm   
)

Definition at line 751 of file ah-comb.cc.

References Aleph::exists(), Aleph::exists_perm(), l, and Aleph::maps().

◆ TEST() [28/52]

TEST ( AhComb  ,
NodescardFilterPerm   
)

Definition at line 781 of file ah-comb.cc.

References Aleph::filter_perm(), l, Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [29/52]

TEST ( AhComb  ,
NodescardFoldPerm   
)

Definition at line 728 of file ah-comb.cc.

References Aleph::DynList< T >::get_first(), l, Aleph::maps(), and Aleph::sum().

◆ TEST() [30/52]

TEST ( AhComb  ,
NodescardMapPerm   
)

Definition at line 791 of file ah-comb.cc.

References Aleph::DynList< T >::get_first(), l, Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [31/52]

TEST ( AhComb  ,
NodescardNonePerm   
)

Definition at line 771 of file ah-comb.cc.

References l, Aleph::maps(), Aleph::none(), and Aleph::none_perm().

◆ TEST() [32/52]

TEST ( AhComb  ,
NodescardPermCount   
)

Definition at line 741 of file ah-comb.cc.

References Aleph::count(), l, Aleph::maps(), and Aleph::perm_count().

◆ TEST() [33/52]

TEST ( AhComb  ,
NodescardTranspose   
)

Definition at line 718 of file ah-comb.cc.

References Aleph::maps(), and Aleph::transpose().

◆ TEST() [34/52]

TEST ( AhComb  ,
NonePermNoneSatisfy   
)

◆ TEST() [35/52]

TEST ( AhComb  ,
NonePermSomeSatisfy   
)

◆ TEST() [36/52]

TEST ( AhComb  ,
NonRectangularTransposeDies   
)

Definition at line 256 of file ah-comb.cc.

References Aleph::in_place_transpose(), Aleph::maps(), and Aleph::transpose().

◆ TEST() [37/52]

TEST ( AhComb  ,
PermCountBasic   
)

Definition at line 271 of file ah-comb.cc.

References l, Aleph::maps(), and Aleph::perm_count().

◆ TEST() [38/52]

TEST ( AhComb  ,
PermCountEmpty   
)

Definition at line 280 of file ah-comb.cc.

References l, Aleph::maps(), and Aleph::perm_count().

◆ TEST() [39/52]

TEST ( AhComb  ,
PermCountSingleList   
)

Definition at line 295 of file ah-comb.cc.

References l, Aleph::maps(), and Aleph::perm_count().

◆ TEST() [40/52]

TEST ( AhComb  ,
PermCountWithEmptyList   
)

Definition at line 286 of file ah-comb.cc.

References l, Aleph::maps(), and Aleph::perm_count().

◆ TEST() [41/52]

TEST ( AhComb  ,
StressTestManyPermutations   
)

◆ TEST() [42/52]

TEST ( AhComb  ,
TransposeEmpty   
)

◆ TEST() [43/52]

TEST ( AhComb  ,
TransposeRectangular   
)

Definition at line 74 of file ah-comb.cc.

References Aleph::in_place_transpose(), Aleph::maps(), and Aleph::transpose().

◆ TEST() [44/52]

TEST ( AhComb  ,
TransposeSingleColumn   
)

Definition at line 587 of file ah-comb.cc.

References Aleph::maps(), and Aleph::transpose().

◆ TEST() [45/52]

TEST ( AhComb  ,
TransposeSingleRow   
)

Definition at line 571 of file ah-comb.cc.

References Aleph::maps(), and Aleph::transpose().

◆ TEST() [46/52]

TEST ( AhComb  ,
TransposeSquare   
)

Definition at line 618 of file ah-comb.cc.

References Aleph::maps(), and Aleph::transpose().

◆ TEST() [47/52]

TEST ( AhComb  ,
TransposeWithZeroColumns   
)

◆ TEST() [48/52]

TEST ( AhComb  ,
TraversePermEarlyStop   
)

Definition at line 145 of file ah-comb.cc.

References l, Aleph::maps(), and Aleph::traverse_perm().

◆ TEST() [49/52]

TEST ( AhComb  ,
TraversePermEmptyInputCallsOnce   
)

Definition at line 212 of file ah-comb.cc.

References Aleph::HTList::is_empty(), l, Aleph::maps(), and Aleph::traverse_perm().

◆ TEST() [50/52]

TEST ( AhComb  ,
TraversePermEnumeratesAll   
)

◆ TEST() [51/52]

TEST ( AhComb  ,
TraversePermSingleElement   
)

◆ TEST() [52/52]

TEST ( AhComb  ,
TraversePermThreeLists   
)