Update string tests

This commit is contained in:
Gregory Lirent 2022-06-04 15:38:55 +03:00
parent 6fc4bcb379
commit 46a7f69a38

View File

@ -3,18 +3,27 @@
#include "plug.h"
int main(int argc, char** argv) {
test_init(argc, argv);
vtype_string x;
int c = random_unicode_symbol();
x = string_random(12);
string_align_center(&x, 30, 0);
string_print(&x, 0);
string_trim(&x, 0);
string_trim_spaces(&x);
string_print(&x, 0);
string_align_center(&x, 30, c);
string_print(&x, 0);
string_trim(&x, c);
string_print(&x, 0);
string_free(&x);
}