summaryrefslogtreecommitdiff
path: root/test/test.h
blob: 3fdcd0ddf796fa7d5b82d11b8deb522090f57880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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();