feat: TU demo .c
fix: TU demo fix: TU demo
This commit is contained in:
@@ -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) {
|
||||
Reference in New Issue
Block a user