11 lines
211 B
C
11 lines
211 B
C
#include <criterion/criterion.h>
|
|
|
|
#include "utils.h"
|
|
|
|
Test(add, addition_function)
|
|
{
|
|
int a = 2;
|
|
int b = 3;
|
|
int result = add(a, b);
|
|
cr_assert_eq(result, 5, "Expected %d but got %d", 5, result);
|
|
}
|