mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix recursion depth: all_of, any_of, none_of, one_of, find, find_if, find_if_not
This commit is contained in:
parent
74729ce14f
commit
54400ea7d0
16 changed files with 757 additions and 29 deletions
38
libs/algorithm/test/non_modifying.cpp
Normal file
38
libs/algorithm/test/non_modifying.cpp
Normal file
|
@ -0,0 +1,38 @@
|
|||
#ifndef SPROUT_LIBS_ALGORITHM_TEST_NON_MODIFYIING_CPP
|
||||
#define SPROUT_LIBS_ALGORITHM_TEST_NON_MODIFYIING_CPP
|
||||
|
||||
#ifndef TESTSPR_CPP_INCLUDE
|
||||
# define TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_ALGORITHM_TEST_NON_MODIFYIING_CPP
|
||||
# define TESTSPR_CPP_INCLUDE
|
||||
#endif
|
||||
|
||||
#include "./all_of.cpp"
|
||||
#include "./any_of.cpp"
|
||||
#include "./none_of.cpp"
|
||||
#include "./one_of.cpp"
|
||||
#include "./find.cpp"
|
||||
#include "./find_if.cpp"
|
||||
#include "./find_if_not.cpp"
|
||||
|
||||
#ifdef TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_ALGORITHM_TEST_NON_MODIFYIING_CPP
|
||||
# undef TESTSPR_CPP_INCLUDE
|
||||
#endif
|
||||
|
||||
namespace testspr {
|
||||
static void algorithm_non_modifying_test() {
|
||||
testspr::algorithm_all_of_test();
|
||||
testspr::algorithm_any_of_test();
|
||||
testspr::algorithm_none_of_test();
|
||||
testspr::algorithm_one_of_test();
|
||||
testspr::algorithm_find_test();
|
||||
testspr::algorithm_find_if_test();
|
||||
testspr::algorithm_find_if_not_test();
|
||||
}
|
||||
} // namespace testspr
|
||||
|
||||
#ifndef TESTSPR_CPP_INCLUDE
|
||||
# define TESTSPR_TEST_FUNCTION testspr::algorithm_non_modifying_test
|
||||
# include <testspr/include_main.hpp>
|
||||
#endif
|
||||
|
||||
#endif // #ifndef SPROUT_LIBS_ALGORITHM_TEST_NON_MODIFYIING_CPP
|
Loading…
Add table
Add a link
Reference in a new issue