blob: 8102a5818f8886d91dddbe9e40fa0a24ab8f0c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <locale.h>
#include <signal.h>
#include <stdlib.h>
#include "test.h"
void handle_abort() { exit(1); }
int main() {
setlocale(LC_ALL, "");
signal(SIGABRT, handle_abort);
printf("\nš \x1b[1;36mRunning utf8 tests...\x1b[0m\n");
run_utf8_tests();
printf("\nš \x1b[1;36mRunning text tests...\x1b[0m\n");
run_text_tests();
printf("\nš“ļø \x1b[1;36mRunning buffer tests...\x1b[0m\n");
run_buffer_tests();
printf("\nš \x1b[1;36mRunning command tests...\x1b[0m\n");
run_command_tests();
printf("\nš \x1b[1;32mDone! All tests successful!\x1b[0m\n");
return 0;
}
|