Challenge 1 + 2

This commit is contained in:
ctsk
2022-09-02 21:57:44 +02:00
parent 69a872fe2d
commit 1b0003e586
9 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include "linked_list.h"
#include <assert.h>
int main()
{
List *l = InitList();
Insert(l, "one");
Insert(l, "two");
Insert(l, "three");
int f = Find(l, "two");
assert(f > 0);
int f = Find(l, "four");
assert(f == 0);
}