Challenge 1 + 2
This commit is contained in:
18
challenges/01-intro-challenges/c-env/main.c
Normal file
18
challenges/01-intro-challenges/c-env/main.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user