aboutsummaryrefslogtreecommitdiff
path: root/src/suites/flow.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-09 11:19:58 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-09 11:19:58 +0200
commit84b23010e0d0515ad3ed17a605440e50439781e8 (patch)
tree2c71f2d4afbb7b0a8e9e128f1d1383f5637de88c /src/suites/flow.py
parent5d1410a9b08eb8df82a43312b8b6d3d9c1c9eb00 (diff)
downloadminishell_test-84b23010e0d0515ad3ed17a605440e50439781e8.tar.gz
minishell_test-84b23010e0d0515ad3ed17a605440e50439781e8.tar.bz2
minishell_test-84b23010e0d0515ad3ed17a605440e50439781e8.zip
Formatting/Refactoring, Added pretty ascii art
Diffstat (limited to 'src/suites/flow.py')
-rw-r--r--src/suites/flow.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/suites/flow.py b/src/suites/flow.py
index a62cd9d..eb9eb30 100644
--- a/src/suites/flow.py
+++ b/src/suites/flow.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:52 by charles #+# #+# #
-# Updated: 2020/10/08 17:33:32 by cacharle ### ########.fr #
+# Updated: 2020/10/09 08:51:57 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -203,6 +203,10 @@ def suite_parenthesis(test):
test("( echo salut && echo bonjours ) ; echo comment ca va")
test("(cd /; echo $PWD; pwd); echo $PWD; pwd")
test("(export A=a; echo $A); echo $A")
+ test("(cat /etc/shells) | (cat -e) | (cat -e) | (cat -e)")
+ test("(cat /etc/shells) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e)")
+ test("(cat /etc/shells | (cat -e) | (cat -e) | (cat -e)", hook=[error_line0, error_eof_to_expected_token])
+ test("(cat /etc/shells) | (cat -e) | (cat -e | (cat -e)", hook=[error_line0, error_eof_to_expected_token])
@suite()