From 69b15596d84c16eb8ad113c06fdd6072a04af113 Mon Sep 17 00:00:00 2001 From: "edgar.lugnier" Date: Thu, 29 Jan 2026 02:54:29 +0100 Subject: [PATCH] fix(pretty_print): fix test pretty_print --- tests/test_pretty_print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_pretty_print.c b/tests/test_pretty_print.c index 20829a4..e1abff7 100644 --- a/tests/test_pretty_print.c +++ b/tests/test_pretty_print.c @@ -12,7 +12,7 @@ * Match expected line * Remove file after test */ -/* + Test(pretty_print, echo_ok) { char buf[1024] = { 0 }; @@ -22,11 +22,11 @@ Test(pretty_print, echo_ok) my_ast_node.type = AST_CMD; my_ast_node.data.cmd_node.args = args; my_ast_node.data.cmd_node.assignment = NULL; - cr_assert_eq(pretty_print(filename, &my_ast_node), 0); + cr_assert_eq(pretty_print(filename, my_ast_node), 0); int fd = open(filename, O_RDONLY); cr_assert_neq(fd, -1); cr_assert(read(fd, buf, sizeof(buf) - 1) >= 0); close(fd); cr_assert_str_eq(buf, "echo ok\n"); remove(filename); -}*/ +}