36 lines
653 B
C
36 lines
653 B
C
#include "Test.h"
|
|
|
|
DEFINE_TEST(strlen);
|
|
DEFINE_TEST(strnlen);
|
|
DEFINE_TEST(strcspn);
|
|
DEFINE_TEST(strspn);
|
|
DEFINE_TEST(strchr);
|
|
DEFINE_TEST(strrchr);
|
|
DEFINE_TEST(strpbrk);
|
|
|
|
DEFINE_TEST(atoi);
|
|
DEFINE_TEST(atol);
|
|
DEFINE_TEST(atoll);
|
|
DEFINE_TEST(srand);
|
|
DEFINE_TEST(malloc);
|
|
DEFINE_TEST(calloc);
|
|
|
|
int main()
|
|
{
|
|
START_TEST_CASE(string.h);
|
|
RUN_TEST(strlen);
|
|
RUN_TEST(strnlen);
|
|
RUN_TEST(strcspn);
|
|
RUN_TEST(strspn);
|
|
RUN_TEST(strchr);
|
|
RUN_TEST(strrchr);
|
|
RUN_TEST(strpbrk);
|
|
|
|
START_TEST_CASE(stdlib.h);
|
|
RUN_TEST(atoi);
|
|
RUN_TEST(atol);
|
|
RUN_TEST(atoll);
|
|
RUN_TEST(srand);
|
|
RUN_TEST(malloc);
|
|
RUN_TEST(calloc);
|
|
} |