2022-10-16 13:31:58 +00:00
|
|
|
#include "Test.h"
|
|
|
|
|
2022-10-22 16:33:28 +00:00
|
|
|
// string.h
|
|
|
|
DEFINE_TEST(memset);
|
|
|
|
DEFINE_TEST(memcpy);
|
|
|
|
DEFINE_TEST(memchr);
|
2022-10-22 17:04:19 +00:00
|
|
|
DEFINE_TEST(memcmp);
|
|
|
|
DEFINE_TEST(memmove);
|
2022-10-16 13:31:58 +00:00
|
|
|
DEFINE_TEST(strlen);
|
2022-10-16 14:00:14 +00:00
|
|
|
DEFINE_TEST(strnlen);
|
2022-10-22 09:57:25 +00:00
|
|
|
DEFINE_TEST(strcspn);
|
2022-10-22 10:36:31 +00:00
|
|
|
DEFINE_TEST(strspn);
|
2022-10-22 15:58:54 +00:00
|
|
|
DEFINE_TEST(strchr);
|
2022-10-22 18:36:28 +00:00
|
|
|
DEFINE_TEST(strchrnul);
|
2022-10-22 15:58:54 +00:00
|
|
|
DEFINE_TEST(strrchr);
|
2022-10-22 16:09:43 +00:00
|
|
|
DEFINE_TEST(strpbrk);
|
2022-10-22 18:36:28 +00:00
|
|
|
DEFINE_TEST(strdup);
|
|
|
|
DEFINE_TEST(strndup);
|
2022-10-16 13:31:58 +00:00
|
|
|
|
2022-10-22 16:33:28 +00:00
|
|
|
// stdlib.h
|
2022-10-22 10:03:10 +00:00
|
|
|
DEFINE_TEST(atoi);
|
2022-10-22 10:10:19 +00:00
|
|
|
DEFINE_TEST(atol);
|
|
|
|
DEFINE_TEST(atoll);
|
|
|
|
DEFINE_TEST(srand);
|
2022-10-22 16:06:01 +00:00
|
|
|
DEFINE_TEST(malloc);
|
|
|
|
DEFINE_TEST(calloc);
|
2022-11-05 17:07:45 +00:00
|
|
|
DEFINE_TEST(mktemp);
|
2022-11-06 16:16:08 +00:00
|
|
|
DEFINE_TEST(qsort);
|
2022-10-22 10:03:10 +00:00
|
|
|
|
2022-10-16 13:31:58 +00:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
START_TEST_CASE(string.h);
|
2022-10-22 16:33:28 +00:00
|
|
|
RUN_TEST(memset);
|
|
|
|
RUN_TEST(memcpy);
|
|
|
|
RUN_TEST(memchr);
|
2022-10-22 17:04:19 +00:00
|
|
|
RUN_TEST(memcmp);
|
|
|
|
RUN_TEST(memmove);
|
2022-10-16 13:31:58 +00:00
|
|
|
RUN_TEST(strlen);
|
2022-10-16 14:00:14 +00:00
|
|
|
RUN_TEST(strnlen);
|
2022-10-22 09:57:25 +00:00
|
|
|
RUN_TEST(strcspn);
|
2022-10-22 10:36:31 +00:00
|
|
|
RUN_TEST(strspn);
|
2022-10-22 15:58:54 +00:00
|
|
|
RUN_TEST(strchr);
|
2022-10-22 18:36:28 +00:00
|
|
|
RUN_TEST(strchrnul);
|
2022-10-22 15:58:54 +00:00
|
|
|
RUN_TEST(strrchr);
|
2022-10-22 16:09:43 +00:00
|
|
|
RUN_TEST(strpbrk);
|
2022-10-22 18:36:28 +00:00
|
|
|
RUN_TEST(strdup);
|
|
|
|
RUN_TEST(strndup);
|
2022-10-22 10:03:10 +00:00
|
|
|
|
|
|
|
START_TEST_CASE(stdlib.h);
|
|
|
|
RUN_TEST(atoi);
|
2022-10-22 10:10:19 +00:00
|
|
|
RUN_TEST(atol);
|
|
|
|
RUN_TEST(atoll);
|
|
|
|
RUN_TEST(srand);
|
2022-10-22 16:06:01 +00:00
|
|
|
RUN_TEST(malloc);
|
|
|
|
RUN_TEST(calloc);
|
2022-11-05 17:07:45 +00:00
|
|
|
RUN_TEST(mktemp);
|
2022-11-06 16:16:08 +00:00
|
|
|
RUN_TEST(qsort);
|
2022-10-16 13:31:58 +00:00
|
|
|
}
|