Update string tests
This commit is contained in:
parent
6fc4bcb379
commit
46a7f69a38
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user