Skip to content

Commit

Permalink
[feature] minor linkedlist updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lvntky committed Aug 9, 2024
1 parent 4b10140 commit 7c14853
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/source/cc_linkedlist_test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#define CC_LINKEDLIST_IMPLEMENTATION
#include "../../include/ccontainer/cc_linkedlist.h"
#include "utest.h"

UTEST(cc_linkedlist, create_node)
{
int data = 1;
cc_linkedlist_node_t *head =
cc_linkedlist_create_node(&data, sizeof(data));

ASSERT_EQ(head->data, 1);
ASSERT_EQ(cc_linkedlist_size(head), 1);
}

0 comments on commit 7c14853

Please sign in to comment.