Example #1
0
int main()
{
	char s[12]; //length is longest signed int, '-', and '\0'
	
	//test data
	test_itoa(0, s);
	test_itoa(1, s);
	test_itoa(-1, s);
	test_itoa(123, s);
	test_itoa(-123, s);
	test_itoa(INT_MAX, s);
	test_itoa(INT_MIN, s);
	
	return 0;
}
Example #2
0
int		main()
{
	test_memalloc();
	test_memdel();
	test_strnew();
	test_strdel();
	test_strclr();
	test_striter();
	test_striteri();
	test_strmap();
	test_strmapi();
	test_strequ();
	test_strnequ();
	test_strsub();
	test_strjoin();
	test_strtrim();
	test_strsplit();
	test_itoa();
	return (0);
}
Example #3
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);
}