C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
test.c File Reference

Contains sample use cases/test of different data structure operations. More...

#include "common.h"
#include "link_list.h"
#include "stack.h"
#include "queue.h"
#include "heap.h"
#include "tree.h"
#include "graph.h"
#include "array.h"
#include "disjoint_set.h"

Go to the source code of this file.

Functions

void test_disjoint_set ()
 
Test Disjoint set routines (Merge-Find) More...
 
void test_graph ()
 
Test Graph routines More...
 
void test_array ()
 
Test Array search and sort routines More...
 
void test_tree ()
 
Test Tree routines More...
 
void test_heap ()
 
Test Heap routines More...
 
void test_queue ()
 
Test Queue routines More...
 
void test_stack ()
 
Test stack routines More...
 
void test_linklist ()
 
Test link list routines More...
 
int main (int argc, char *argv[])
 
Main Driver test More...
 

Detailed Description

Contains sample use cases/test of different data structure operations.

Definition in file test.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)


Main Driver test

Parameters
argc- Count cmd line arguments
argv- Pointer to cmd line arguments
Returns
- 0 on succesfull exit

Definition at line 31 of file test.c.

◆ test_array()

void test_array ( )


Test Array search and sort routines

Returns
NA

Definition at line 850 of file test.c.

◆ test_disjoint_set()

void test_disjoint_set ( )


Test Disjoint set routines (Merge-Find)

Returns
NA

Definition at line 894 of file test.c.

◆ test_graph()

void test_graph ( )


Test Graph routines

Returns
NA

Definition at line 599 of file test.c.

◆ test_heap()

void test_heap ( )


Test Heap routines

Returns
NA

Definition at line 385 of file test.c.

◆ test_linklist()

void test_linklist ( )


Test link list routines

Returns
NA

Definition at line 161 of file test.c.

◆ test_queue()

void test_queue ( )


Test Queue routines

Returns
NA

Definition at line 320 of file test.c.

◆ test_stack()

void test_stack ( )


Test stack routines

Returns
NA

Definition at line 77 of file test.c.

◆ test_tree()

void test_tree ( )


Test Tree routines

Returns
NA

Definition at line 461 of file test.c.