INF2004-Project v0.1
 
Loading...
Searching...
No Matches
navigation_tests.c File Reference

Tests the combined navigational functions. More...

#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "pathfinding/maze.h"
#include "pathfinding/floodfill.h"
#include "pathfinding/dfs.h"
#include "pathfinding/a_star.h"
Include dependency graph for navigation_tests.c:

Macros

#define DEBUG_PRINT(...)   printf(__VA_ARGS__)
 Debug print macro. Only prints if NDEBUG is not defined. More...
 

Typedefs

typedef enum constants constants_t
 This enum contains constants used in the tests.
 

Enumerations

enum  constants { GRID_ROWS = 6 , GRID_COLS = 4 , BUFFER_SIZE = 2048u }
 This enum contains constants used in the tests. More...
 

Functions

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

Detailed Description

Tests the combined navigational functions.

Author
Christopher Kok (chris.nosp@m.@for.nosp@m.celig.nosp@m.htni.nosp@m.ng.xy.nosp@m.z)
Version
0.1
Date
2023-11-21

Macro Definition Documentation

◆ DEBUG_PRINT

#define DEBUG_PRINT (   ...)    printf(__VA_ARGS__)

Debug print macro. Only prints if NDEBUG is not defined.

Parameters
...Variable arguments to be printed.

Enumeration Type Documentation

◆ constants

enum constants

This enum contains constants used in the tests.

Enumerator
GRID_ROWS 

Number of rows in the grid.

GRID_COLS 

Number of columns in the grid.

BUFFER_SIZE 

Size of the buffer for serialisation.