aboutsummaryrefslogtreecommitdiff
path: root/src/suites/parenthesis.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-11 15:52:01 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-11 16:15:00 +0200
commitdcb4a6453ca1ca6789c3121a739f373abeaba14c (patch)
treeda3d3ef6ebbf4dda57b728edc0d366b2fbe62faf /src/suites/parenthesis.py
parentd0a80859f630866461e8a888b3f8fe008c8158ba (diff)
downloadminishell_test-dcb4a6453ca1ca6789c3121a739f373abeaba14c.tar.gz
minishell_test-dcb4a6453ca1ca6789c3121a739f373abeaba14c.tar.bz2
minishell_test-dcb4a6453ca1ca6789c3121a739f373abeaba14c.zip
Added output hook and sort_lines hook
Diffstat (limited to 'src/suites/parenthesis.py')
-rw-r--r--src/suites/parenthesis.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/suites/parenthesis.py b/src/suites/parenthesis.py
index 98320e8..d3ec5bf 100644
--- a/src/suites/parenthesis.py
+++ b/src/suites/parenthesis.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:57 by charles #+# #+# #
-# Updated: 2020/09/11 14:23:35 by charles ### ########.fr #
+# Updated: 2020/09/11 16:13:54 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -55,3 +55,8 @@ def suite_parenthesis(test):
test("(exit); echo bonjour")
test("(echo bonjour; exit; echo aurevoir)")
+
+ test("(ls && ls)")
+ test("(ls doesntexist || ls)")
+ test("(ls doesntexist && ls)")
+ test("(ls && ls) && echo $?")