Skip to content

Commit

Permalink
increase line size
Browse files Browse the repository at this point in the history
  • Loading branch information
defermelowie authored and josecm committed Dec 19, 2023
1 parent 9bdda2c commit aee9063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/rvh_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ extern size_t test_table_size;
#define TEST_START()\
const char* __test_name = __func__;\
bool test_status = true;\
if(LOG_LEVEL >= LOG_INFO) printf(CBLU "%-70s" CDFLT, __test_name);\
if(LOG_LEVEL >= LOG_INFO) printf(CBLU "%-85s" CDFLT, __test_name);\
if(LOG_LEVEL >= LOG_DETAIL) printf("\n");

#define TEST_REGISTER(test)\
Expand All @@ -119,11 +119,11 @@ extern size_t test_table_size;

#define TEST_ASSERT(test, cond, ...) {\
if(LOG_LEVEL >= LOG_DETAIL){\
size_t line_size = 60;\
size_t line_size = 80;\
size_t size = strlen(test);\
printf(CBLU "\t%-70.*s" CDFLT, line_size, test);\
printf(CBLU "\t%-85.*s" CDFLT, line_size, test);\
for(int i = line_size; i < size; i+=line_size)\
printf(CBLU "\n\t%-70.*s" CDFLT, line_size, &test[i]);\
printf(CBLU "\n\t%-85.*s" CDFLT, line_size, &test[i]);\
printf("%s" CDFLT, (cond) ? CGRN "PASSED" : CRED "FAILED");\
if(!(cond)) { printf("\n\t("); printf(""__VA_ARGS__); printf(")"); }\
printf("\n");\
Expand Down

0 comments on commit aee9063

Please sign in to comment.