summaryrefslogtreecommitdiff
path: root/test/test.h
blob: f7779167a6206728d4502ce961a56e17bf0c2bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _TEST_H_
#define _TEST_H_

#include <stdio.h>

#define run_test(fn)                                                           \
  printf("    🧜 running \x1b[1;36m" #fn "\033[0m... ");                     \
  fflush(stdout);                                                              \
  fn();                                                                        \
  printf("\033[32mok!\033[0m\n");

void run_buffer_tests();
void run_utf8_tests();
void run_text_tests();
void run_command_tests();
void run_keyboard_tests();
void run_allocator_tests();
void run_minibuffer_tests();

#endif