feat: TU demo .c

fix: TU demo

fix: TU demo
This commit is contained in:
Coline
2022-07-20 15:40:01 +02:00
parent cebc1c65f1
commit 16ddb1e67d
3 changed files with 21 additions and 7 deletions

View File

@@ -3,11 +3,11 @@
#include <setjmp.h>
#include <cmocka.h>
int local_strchr(char *string, char ch);
int local_strchr_demo(char *string, char ch);
static void null_test_success(void **state) {
assert_int_equal(local_strchr("salut", 'c'), -1);
assert_int_equal(local_strchr("av", 'a'), 0);
assert_int_equal(local_strchr_demo("salut", 'c'), -1);
assert_int_equal(local_strchr_demo("av", 'a'), 0);
}
int main(void) {