From 8dc5a84d49737861715b2c91b0fadcafefa63f56 Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Fri, 10 Jun 2022 20:50:03 +0300 Subject: [PATCH] Update tests --- tests/src/array/src/random.c | 2 +- tests/src/list/src/io.c | 2 +- tests/src/list/src/random.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/array/src/random.c b/tests/src/array/src/random.c index 22af216..4dcc8b7 100644 --- a/tests/src/array/src/random.c +++ b/tests/src/array/src/random.c @@ -79,5 +79,5 @@ void array_remove_random(arr_t* x, _Bool silent, unsigned int hpos) { } } - put_separator(hpos); + if (!silent) put_separator(hpos); } diff --git a/tests/src/list/src/io.c b/tests/src/list/src/io.c index bbb441f..793ae33 100644 --- a/tests/src/list/src/io.c +++ b/tests/src/list/src/io.c @@ -58,7 +58,7 @@ void visual_remove(list_t* x) { list_print(x, 0, 0); psleep(100000); - if (!0) fputs("\e[u\e[J", stdout); + fputs("\e[u\e[J", stdout); } } diff --git a/tests/src/list/src/random.c b/tests/src/list/src/random.c index 2552978..5a4a1a9 100644 --- a/tests/src/list/src/random.c +++ b/tests/src/list/src/random.c @@ -78,5 +78,5 @@ void list_remove_random(list_t* x, _Bool silent, unsigned int hpos) { } } - put_separator(hpos); + if (!silent) put_separator(hpos); }