mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
add test: cstring
This commit is contained in:
parent
b51b14efa9
commit
d1379ff155
14 changed files with 478 additions and 0 deletions
48
libs/cstring/test/cstring.cpp
Normal file
48
libs/cstring/test/cstring.cpp
Normal file
|
@ -0,0 +1,48 @@
|
|||
#ifndef SPROUT_LIBS_CSTRING_TEST_CSTRING_CPP
|
||||
#define SPROUT_LIBS_CSTRING_TEST_CSTRING_CPP
|
||||
|
||||
#ifndef TESTSPR_CPP_INCLUDE
|
||||
# define TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_CSTRING_TEST_CSTRING_CPP
|
||||
# define TESTSPR_CPP_INCLUDE
|
||||
#endif
|
||||
|
||||
#include "./memcmp.cpp"
|
||||
#include "./strcmp.cpp"
|
||||
#include "./strcoll.cpp"
|
||||
#include "./strncmp.cpp"
|
||||
#include "./memchr.cpp"
|
||||
#include "./strchr.cpp"
|
||||
#include "./strcspn.cpp"
|
||||
#include "./strpbrk.cpp"
|
||||
#include "./strrchr.cpp"
|
||||
#include "./strspn.cpp"
|
||||
#include "./strstr.cpp"
|
||||
#include "./strlen.cpp"
|
||||
|
||||
#ifdef TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_CSTRING_TEST_CSTRING_CPP
|
||||
# undef TESTSPR_CPP_INCLUDE
|
||||
#endif
|
||||
|
||||
namespace testspr {
|
||||
static void cstring_test() {
|
||||
testspr::cstring_memcmp_test();
|
||||
testspr::cstring_strcmp_test();
|
||||
testspr::cstring_strcoll_test();
|
||||
testspr::cstring_strncmp_test();
|
||||
testspr::cstring_memchr_test();
|
||||
testspr::cstring_strchr_test();
|
||||
testspr::cstring_strcspn_test();
|
||||
testspr::cstring_strpbrk_test();
|
||||
testspr::cstring_strrchr_test();
|
||||
testspr::cstring_strspn_test();
|
||||
testspr::cstring_strstr_test();
|
||||
testspr::cstring_strlen_test();
|
||||
}
|
||||
} // namespace testspr
|
||||
|
||||
#ifndef TESTSPR_CPP_INCLUDE
|
||||
# define TESTSPR_TEST_FUNCTION testspr::cstring_test
|
||||
# include <testspr/include_main.hpp>
|
||||
#endif
|
||||
|
||||
#endif // #ifndef SPROUT_LIBS_CSTRING_TEST_CSTRING_CPP
|
Loading…
Add table
Add a link
Reference in a new issue