Skip to content
Snippets Groups Projects
test.h 347 B
#ifndef TEST_H
#define TEST_H

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>

#define TEST(name) test(name, #name)

struct Test {
  char name[255];
  char result_msg[255];
  unsigned char failed;
};

void test(int (*)(), char *);
void test_assert(int success);
int test_summary();

#endif