Ejemplo n.º 1
0
int			main(void)
{
	set(MAGENTA);
	set(BOLD);
	printf("\n\t\t\t\t\t\t\t\t=============== FUNCTIONS ===============\n\n");
	set(UNCOLOR);
	test_bzero();
	test_strcat();
	test_isalpha();
	test_isdigit();
	test_isalnum();
	test_isascii();
	test_isprint();
	test_toupper();
	test_tolower();
	test_puts();
	test_strlen();
	test_memset();
	test_memcpy();
	test_strdup();

	set(MAGENTA);
	set(BOLD);
	printf("\t\t\t\t\t\t\t\t================= BONUS =================\n\n");
	set(UNCOLOR);
	test_islower();
	test_isupper();
	test_strcpy();
	test_putchar();
	test_putstr();
	return (0);
}
Ejemplo n.º 2
0
int
main (int argc, char* argv[])
{
#if __FUNCTION__ != main
# error your compiler system does not define __FUNCTION__.
#endif
	/* Avoid NLS nuisances.  */
	(void) setlocale (LC_ALL, "POSIX");
	
	test_isalnum_macro ();
	test_isalpha_macro ();
	test_isascii_macro ();
	test_iscntrl_macro ();
	test_isdigit_macro ();
	test_isgraph_macro ();
	test_isprint_macro ();
	test_ispunct_macro ();
	test_isspace_macro ();
	test_isupper_macro ();
	test_isxdigit_macro ();
	test_isblank_macro ();
	
	test_isalnum ();
	test_isalpha ();
	test_isascii ();
	test_iscntrl ();
	test_isdigit ();
	test_isgraph ();
	test_isprint ();
	test_ispunct ();
	test_isspace ();
	test_isupper ();
	test_isxdigit ();
	test_isblank ();
	
	test_toascii_macro ();
	test__toupper_macro ();
	test__tolower_macro ();
	
	test_toascii ();
	test__toupper ();
	test__tolower ();

#ifdef __MINT__	
	test_toint_macro ();
	test_isodigit_macro ();
	test_iscymf_macro ();
	test_iscym_macro ();
#endif
	
	test_toupper ();
	test_tolower ();
	
	return 0;
}
Ejemplo n.º 3
0
int main()
{
    test_isalnum();
    test_isalpha();
    test_islower();
    test_isupper();
    test_iscntrl();
    test_isgraph();
    test_isprint();
    test_ispunct();
    test_tolower();
    test_toupper();
    return 0;
}
Ejemplo n.º 4
0
int		main(void)
{
#ifdef TEST_ATOI	
# ifdef DEP
# endif
	test_atoi();
#endif
#ifdef TEST_ABSOLUTE
# ifdef DEP
# endif
	test_absolute();
#endif
#ifdef TEST_BZERO
# ifdef DEP
# endif
	test_bzero();
#endif
#ifdef TEST_ISALNUM
# ifdef DEP
# endif
	test_isalnum();
#endif
#ifdef TEST_ISALPHA
# ifdef DEP
# endif
	test_isalpha();
#endif
#ifdef TEST_ISASCII
# ifdef DEP
# endif
	test_isascii();
#endif
#ifdef TEST_ISDIGIT
# ifdef DEP
# endif
	test_isdigit();
#endif
#ifdef TEST_ISLOWER
# ifdef DEP
# endif
	test_islower();
#endif
#ifdef TEST_ISPRINT
# ifdef DEP
# endif
	test_isprint();
#endif
#ifdef TEST_ISUPPER
# ifdef DEP
# endif
	test_isupper();
#endif
#ifdef TEST_ITOA
# ifdef DEP
# endif
	test_itoa();
#endif
#ifdef TEST_LSTNEW
# ifdef DEP
# endif
	test_lstnew();
#endif
#ifdef TEST_LSTADD
# ifdef DEP
	printf("/!\\ ft_lstadd() requires ft_lstnew(). /!\\\n");
# endif
	test_lstadd();
#endif
#ifdef TEST_LSTDELONE
# ifdef DEP
# endif
	test_lstdelone();
#endif
#ifdef TEST_LSTDEL
# ifdef DEP
	printf("/!\\ ft_lstdel() requires ft_lstdelone.  /!\\\n");
# endif
	test_lstdel();
#endif
#ifdef TEST_LSTMAP
# ifdef DEP
	printf("/!\\ ft_lstmap() requires ft_memalloc(). /!\\\n");
# endif
	test_lstmap();
#endif
#ifdef TEST_LSTITER
# ifdef DEP
# endif
	test_lstmap();
#endif
#ifdef TEST_MEMALLOC
	test_memalloc();
#endif
#ifdef TEST_MEMDEL
	test_memdel();
#endif
#ifdef TEST_MEMCPY
	test_memcpy();
#endif
#ifdef TEST_MEMCCPY
	test_memccpy();
#endif
#ifdef TEST_MEMCHR
	test_memchr();
#endif	
#ifdef TEST_MEMCMP
	test_memcmp();
#endif
	return (0);
}