minishell/spec/minishell_spec.sh

22 lines
351 B
Bash

It "parses null for empty command"
Data
#|
End
When call ./minishell
The output should eq ""
End
It "a single command is parsed"
Data
#|echo hello
End
When call ./minishell
The output should eq \
" ╰─ t_cmdgroup
├─ t_cmdlist
│ ├─ num_cmds = 1
│ ╰─ cmd[0]
╰─ t_redir_list"
End