summaryrefslogtreecommitdiff
path: root/test/test.h
blob: b01fde4d683c060ca360638a61a2798398303499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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_undo_tests();
void run_command_tests();
void run_keyboard_tests();
void run_allocator_tests();
void run_minibuffer_tests();
void run_settings_tests();
void run_container_tests();

#endif