This file contains the functions that test the depth first search algorithm with a simulated navigator. More...
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "pathfinding/binary_heap.h"
#include "pathfinding/floodfill.h"
#include "pathfinding/maze.h"
#include "pathfinding/dfs.h"
Macros | |
#define | DEBUG_PRINT(...) printf(__VA_ARGS__) |
Debug print macro. Only prints if NDEBUG is not defined. More... | |
Enumerations | |
enum | constants_t { GRID_ROWS = 6 , GRID_COLS = 4 , TEST_BUFFER_SIZE = 2048u , INITIALISE_WAIT = 5000u , GRID_ROWS = 5 , GRID_COLS = 5 , GRID_ROWS = 5 , GRID_COLS = 5 , GRID_ROWS = 10 , GRID_COLS = 10 } |
This enum contains constants used in the tests. More... | |
Functions | |
int | dfs_tests (int argc, char *argv[]) |
This file contains the functions that test the depth first search algorithm with a simulated navigator.
#define DEBUG_PRINT | ( | ... | ) | printf(__VA_ARGS__) |
Debug print macro. Only prints if NDEBUG is not defined.
... | Variable arguments to be printed. |
enum constants_t |
This enum contains constants used in the tests.