mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
tests: put usefull test functions in own files
This commit is contained in:
parent
f5ae3a5d8d
commit
9707316085
12 changed files with 205 additions and 132 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/11 15:07:23 by khais #+# #+# */
|
||||
/* Updated: 2025/03/11 15:20:17 by khais ### ########.fr */
|
||||
/* Updated: 2025/03/11 16:33:42 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -16,15 +16,6 @@
|
|||
#include "../src/parser/cmdgroup/cmdgroup.h"
|
||||
#include "../src/parser/wordsplit/wordsplit.h"
|
||||
|
||||
static t_cmdgroup *parse_cmdgroup(char *input)
|
||||
{
|
||||
ft_dprintf(STDERR_FILENO, "Now checking command group with input [%s]\n", input);
|
||||
t_wordlist *words = minishell_wordsplit(input);
|
||||
t_cmdgroup *cmd = cmdgroup_from_wordlist(words);
|
||||
wordlist_destroy(words);
|
||||
return (cmd);
|
||||
}
|
||||
|
||||
static void test_cmdgroup_parsing_empty(void)
|
||||
{
|
||||
t_cmdgroup *cmd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue