aboutsummaryrefslogtreecommitdiff
path: root/test/src/algo/test_ft_compar_int.c
blob: 39cc322b83b43bd36e9cb47d24bf948e83623bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "libft_test.h"

TEST_GROUP(ft_compar_int);

TEST_SETUP(ft_compar_int)
{}

TEST_TEAR_DOWN(ft_compar_int)
{}

TEST(ft_compar_int, basic)
{
	int a = 4;
	int b = 3;

	TEST_ASSERT_GREATER_THAN(0, ft_compar_int(&a, &b));
	TEST_ASSERT_LESS_THAN(0, ft_compar_int(&b, &a));
	TEST_ASSERT_EQUAL(0, ft_compar_int(&a, &a));
	TEST_ASSERT_EQUAL(0, ft_compar_int(&b, &b));
}