42_push_swap/test.c

53 lines
1.4 KiB
C
Raw Normal View History

2022-11-23 15:44:27 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/23 16:43:32 by cchauvet #+# #+# */
2022-11-30 07:21:32 -05:00
/* Updated: 2022/11/29 17:11:41 by cchauvet ### ########.fr */
2022-11-23 15:44:27 -05:00
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "pushswap.h"
int main()
{
2022-11-30 07:21:32 -05:00
int tab_a[5] = {0,1,2,3,-1};
int tab_b[5] = {-1};
2022-11-29 08:06:22 -05:00
int i;
2022-11-23 15:44:27 -05:00
2022-11-30 07:21:32 -05:00
i = 0;
printf("a: ");
while (tab_a[i] != -1)
{
printf("%d, ", tab_a[i]);
i++;
}
printf("\nb: ");
i = 0;
while (tab_b[i] != -1)
{
printf("%d, ", tab_b[i]);
i++;
}
2022-11-29 08:06:22 -05:00
printf("\n");
2022-11-30 07:21:32 -05:00
ft_pa(tab_a, tab_b);
i = 0;
printf("a: ");
while (tab_a[i] != -1)
{
printf("%d, ", tab_a[i]);
i++;
}
printf("\nb: ");
i = 0;
while (tab_b[i] != -1)
{
printf("%d, ", tab_b[i]);
i++;
}
2022-11-23 15:44:27 -05:00
}